13 lines
554 B
TypeScript
13 lines
554 B
TypeScript
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')
|
||
|
|
})
|
||
|
|
})
|