-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eb6c88b20c4a32d218b0712c9a6926d6cf7ee134
- Loading branch information
1 parent
ca5e6fa
commit 3206bab
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/credential-provider-cognito-identity/src/localStorage-inmemoryStorage.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @jest-environment node | ||
*/ | ||
|
||
import { localStorage } from "./localStorage"; | ||
import { InMemoryStorage } from "./InMemoryStorage"; | ||
|
||
describe("localStorage", () => { | ||
//use node run time in jest(default jsdom) | ||
it("should return an in-memory storage implementation when indexDB or localStorage is not available", () => { | ||
expect(localStorage()).toBeInstanceOf(InMemoryStorage); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/credential-provider-cognito-identity/tsconfig.test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters