Skip to content

Commit 63ea76c

Browse files
committed
0.21.17 - fix missing isConfigured in mock store
1 parent 2926cb9 commit 63ea76c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

packages/auth-server-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@schemavaults/auth-server-sdk",
33
"description": "TypeScript SDK for building authenticated endpoints/middlewares for the Auth Server and Resource Servers",
4-
"version": "0.21.16",
4+
"version": "0.21.17",
55
"license": "UNLICENSED",
66
"private": false,
77
"repository": {

packages/auth-server-sdk/src/middleware/SchemaVaultsServerMiddlewareInitialization.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ class MockJwtKeyManager extends DatabaseConnectedJwtKeyManager {
1111
public constructor() {
1212
super(new MockJwtKeySetsStore());
1313
}
14+
15+
public isConfigured(): boolean {
16+
return true;
17+
}
1418
}
1519

1620
describe("SchemaVaultsServerMiddleware Initialization", () => {
@@ -73,4 +77,10 @@ describe("SchemaVaultsServerMiddleware Initialization", () => {
7377
}
7478
expect(errorThrown).toBeFalse();
7579
});
80+
81+
test("has an 'isConfigured()' method that returns a boolean", () => {
82+
const instance = new MockJwtKeyManager();
83+
expect(instance.isConfigured).toBeFunction();
84+
expect(instance.isConfigured()).toBeBoolean();
85+
});
7686
});

0 commit comments

Comments
 (0)