Skip to content

Commit ec4b3e5

Browse files
committed
test(driver-sql): the tenant-scoping case of the equivalence pin
Claude-Session: https://claude.ai/code/session_01NnXVu3vF2TKFLMi5Me4CUd Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1342d1d commit ec4b3e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/drivers/driver-sql/src/sql-driver-tenant-key-equivalence.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ describe('7b-1 — the differ: COALESCE(tenant) ≡ tenant where the tenant colu
7878
expect(diff(expectedNullSafe, plain, false).map((d) => d.op.type)).toEqual(['recreate_index']);
7979
});
8080

81-
it('the equivalence is the TENANT column\'s: with no tenant column named it does not apply', () => {
82-
expect(diff(expectedPlain, coalesced, true, null).map((d) => d.op.type)).not.toEqual([]);
81+
it("the equivalence is the TENANT column's: on a table whose tenant column is another one, it does not apply", () => {
82+
expect(diff(expectedNullSafe, plain, true, 'workspace_id').map((d) => d.op.type)).toEqual(['recreate_index']);
8383
});
8484

8585
it('it changes the form of the key part only — a different column set stays drift, certified or not', () => {

0 commit comments

Comments
 (0)