test: the boundary stores the owner id as a string; compare it as one
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU
This commit is contained in:
parent
2e3cf0d77b
commit
ed17d38229
1 changed files with 1 additions and 1 deletions
|
|
@ -1131,7 +1131,7 @@ test('the same person signing in again in another tab is adopted, not reloaded',
|
|||
b.storageMessage({ ...shared, generation: 'another-tab-same-person' });
|
||||
assert.equal(b.c.AccountBoundary.blocked(), false, 'not frozen');
|
||||
assert.equal(b.reloads(), 0, 'not reloaded');
|
||||
assert.equal(b.c.AccountBoundary.capture(), 1, 'still working as the same owner');
|
||||
assert.equal(String(b.c.AccountBoundary.capture()), '1', 'still working as the same owner');
|
||||
b.storageMessage({ ...shared, owner: 2, generation: 'another-tab-other-person' });
|
||||
assert.equal(b.c.AccountBoundary.blocked(), true, 'a different account still freezes this tab');
|
||||
assert.ok(b.reloads());
|
||||
|
|
|
|||
Loading…
Reference in a new issue