Skip to content

Commit d9df7ad

Browse files
committed
WIP(#27237): door test reads the last materialization without Array.prototype.at
Claude-Session: https://claude.ai/code/session_01Utp6CaqVRa7ow6CjE1JwaG Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5671ee2 commit d9df7ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/services/service-automation/src/connector-credential-door.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ describe('[#27237] seat review r1: only a stored value holds its instance', () =
465465
provider.state.rejectAtMaterialization = false;
466466
provider.state.verifyAtMaterialization = true;
467467
await reload();
468-
expect(provider.tokenOf(provider.state.materialized.at(-1)!)).toBe('dummy-vault-value-ffff-0006');
468+
expect(provider.tokenOf(provider.state.materialized[provider.state.materialized.length - 1])).toBe('dummy-vault-value-ffff-0006');
469469
expect(engine.getConnectorDegradedReason('billing')).toBeUndefined();
470470
// The provider proved it while materializing: no call needed.
471471
expect((await engine.listConnectorCredentialRefs())[0]).toMatchObject({ source: 'vault', status: 'set' });

0 commit comments

Comments
 (0)