Skip to content

Commit 32130b3

Browse files
hotlongCopilot
andcommitted
test: update auth test expectations for organization plugin default
The organization plugin now defaults to enabled (changed in 53d3f83). Update auth-config and auth-manager tests to reflect this default. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2c15aef commit 32130b3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/plugins/plugin-auth/src/auth-manager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ describe('AuthManager', () => {
314314
await manager.getAuthInstance();
315315
warnSpy.mockRestore();
316316

317-
expect(capturedConfig.plugins.map((p: any) => p.id)).toEqual(['bearer']);
317+
expect(capturedConfig.plugins.map((p: any) => p.id)).toEqual(['bearer', 'organization']);
318318
});
319319

320320
it('should register organization plugin with schema mapping when enabled', async () => {

packages/spec/src/system/auth-config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('AuthPluginConfigSchema', () => {
4545
it('should apply defaults for all fields', () => {
4646
const config = AuthPluginConfigSchema.parse({});
4747

48-
expect(config.organization).toBe(false);
48+
expect(config.organization).toBe(true);
4949
expect(config.twoFactor).toBe(false);
5050
expect(config.passkeys).toBe(false);
5151
expect(config.magicLink).toBe(false);

0 commit comments

Comments
 (0)