-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): migrate preferences storage to basic storage (#484)
* feat: add func migrate preferences storage to basic storage * fix: unittest * chore: fix error unittest * chore: add unittest for biametry cache and indentifier view type cache * chore: change location function createOrUpdate and some unittest * chore: change misc record id name * chore: change misc record name * chore: change use biometryCacheCache * chore: rm state and fix unittest
- Loading branch information
1 parent
f45e214
commit 516e779
Showing
45 changed files
with
607 additions
and
449 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from "./secureStorage"; | ||
export * from "./preferences"; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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,21 @@ | ||
import { PayloadAction } from "@reduxjs/toolkit"; | ||
import { biometryCacheSlice, setEnableBiometryCache } from "./biometryCache"; | ||
|
||
describe("biometryCache", () => { | ||
const initialState = { | ||
enabled: false, | ||
}; | ||
it("should return the initial state", () => { | ||
expect(biometryCacheSlice.reducer(undefined, {} as PayloadAction)).toEqual( | ||
initialState | ||
); | ||
}); | ||
|
||
it("should handle setEnableBiometryCache", () => { | ||
const newState = biometryCacheSlice.reducer( | ||
initialState, | ||
setEnableBiometryCache(true) | ||
); | ||
expect(newState.enabled).toEqual(true); | ||
}); | ||
}); |
Oops, something went wrong.