File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/snaps-rpc-methods/src/permitted Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ describe('snap_setState', () => {
63
63
} ) ;
64
64
65
65
expect ( getUnlockPromise ) . toHaveBeenCalled ( ) ;
66
+ expect ( getSnapState ) . toHaveBeenCalledWith ( true ) ;
66
67
expect ( updateSnapState ) . toHaveBeenCalledWith ( { foo : 'baz' } , true ) ;
67
68
68
69
expect ( response ) . toStrictEqual ( {
@@ -116,6 +117,7 @@ describe('snap_setState', () => {
116
117
} ) ;
117
118
118
119
expect ( getUnlockPromise ) . toHaveBeenCalled ( ) ;
120
+ expect ( getSnapState ) . not . toHaveBeenCalled ( ) ;
119
121
expect ( updateSnapState ) . toHaveBeenCalledWith ( { foo : 'baz' } , true ) ;
120
122
121
123
expect ( response ) . toStrictEqual ( {
@@ -169,6 +171,7 @@ describe('snap_setState', () => {
169
171
} ) ;
170
172
171
173
expect ( getUnlockPromise ) . not . toHaveBeenCalled ( ) ;
174
+ expect ( getSnapState ) . toHaveBeenCalledWith ( false ) ;
172
175
expect ( updateSnapState ) . toHaveBeenCalledWith (
173
176
{
174
177
foo : 'baz' ,
You can’t perform that action at this time.
0 commit comments