File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,10 @@ describe('store: [adapter=DOMAIN]', () => {
508508 const activeDomain = getActiveDomain ( ) ;
509509 expect ( activeDomain [ STORE_KEY ] ) . to . equal ( null ) ;
510510 } ) ;
511+
512+ it ( 'should do nothing if the store is not initialized.' , ( ) => {
513+ expect ( globalStore . reset ) . to . throw ( 'Async store not initialized.' ) ;
514+ } ) ;
511515 } ) ;
512516
513517 describe ( 'del():' , ( ) => {
@@ -546,6 +550,10 @@ describe('store: [adapter=DOMAIN]', () => {
546550
547551 globalStore . initialize ( adapter ) ( callback ) ;
548552 } ) ;
553+
554+ it ( 'should do nothing if the store is not initialized.' , ( ) => {
555+ expect ( globalStore . del . bind ( globalStore , 'foo' ) ) . to . throw ( 'Async store not initialized.' ) ;
556+ } ) ;
549557 } ) ;
550558
551559 describe ( 'Test Cases:' , ( ) => {
You can’t perform that action at this time.
0 commit comments