Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaa5120b

Browse files
committed
(refactor/test): split persist options into own describe
- just better organization and separation of concerns / test suites - might eventually split these out into separate files
1 parent53aad0d commitaa5120b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎test/index.spec.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function getItem(key: string) {
99
returnitem ?JSON.parse(item) :null// can only parse strings
1010
}
1111

12-
describe('persist',()=>{
12+
describe('basicpersist functionality',()=>{
1313
beforeEach(()=>window.localStorage.clear())
1414

1515
it('should persist nothing if no actions are used',async()=>{
@@ -34,6 +34,10 @@ describe('persist', () => {
3434
awaitpersist('user',user)
3535
expect(getSnapshot(user)).toStrictEqual(persistedDataF)
3636
})
37+
})
38+
39+
describe('persist options',()=>{
40+
beforeEach(()=>window.localStorage.clear())
3741

3842
it('shouldn\'t jsonify',async()=>{
3943
constuser=UserStoreF.create()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp