11import {
22 get ,
3- set ,
3+ sync ,
44 assert ,
55 getEntries ,
66 invalidate ,
@@ -94,12 +94,12 @@ describe("cache:", () => {
9494 get ( target , "one" , ( ) => {
9595 get ( target , "two" , ( ) => "value" ) ;
9696 get ( target , "three" , ( ) => true ) ;
97- set ( target , "three" , ( ) => false ) ;
97+ sync ( target , "three" , ( ) => false ) ;
9898
9999 return "value" ;
100100 } ) ;
101101
102- set ( target , "two" , ( ) => "other value" ) ;
102+ sync ( target , "two" , ( ) => "other value" ) ;
103103 get ( target , "one" , spy ) ;
104104 expect ( spy ) . toHaveBeenCalledTimes ( 1 ) ;
105105 } ) ;
@@ -123,15 +123,15 @@ describe("cache:", () => {
123123
124124 expect ( spy ) . toHaveBeenCalledTimes ( 0 ) ;
125125
126- set ( target , "key" , ( ) => "value" ) ;
126+ sync ( target , "key" , ( ) => "value" ) ;
127127 get ( target , "key" , spy ) ;
128128
129129 expect ( spy ) . toHaveBeenCalledTimes ( 0 ) ;
130130 } ) ;
131131
132132 it ( "invalidates dependant properties" , ( ) => {
133133 get ( target , "key" , ( ) => get ( target , "otherKey" , ( ) => "value" ) ) ;
134- set ( target , "otherKey" , ( ) => "new value" ) ;
134+ sync ( target , "otherKey" , ( ) => "new value" ) ;
135135
136136 get ( target , "key" , spy ) ;
137137
@@ -170,7 +170,7 @@ describe("cache:", () => {
170170 invalidate ( target , "key" ) ;
171171 get ( target , "key" , ( ) => "value" ) ;
172172
173- set ( target , "otherKey" , ( ) => "new value" ) ;
173+ sync ( target , "otherKey" , ( ) => "new value" ) ;
174174 get ( target , "key" , spy ) ;
175175
176176 expect ( spy ) . toHaveBeenCalledTimes ( 0 ) ;
0 commit comments