Files
admin-web/src/modules/inbounds/components/InboundTaskList.test.ts
T

13 lines
554 B
TypeScript
Raw Normal View History

2026-08-13 17:14:51 +08:00
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { describe, expect, it } from 'vitest'
describe('InboundTaskList measurement scope', () => {
it('uses the inbound tenant isolation key for measurement and review requests', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
expect(source.match(/:tenant-id="selectedInbound\.tenantId"/g)).toHaveLength(2)
expect(source).not.toContain('selectedInbound.customerId || selectedInbound.tenantId')
})
})