File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,26 @@ module.exports = function testAdapter(options) {
2323 } ) ;
2424 }
2525
26+ test ( 'get() should return a promise' , ( ) => {
27+ expect ( adapter . get ( '/a-key' ) . constructor . name ) . toEqual ( "Promise" )
28+ } )
29+
30+ test ( 'getAll() should return a promise' , ( ) => {
31+ expect ( adapter . getAll ( { pathname : '/' } ) . constructor . name ) . toEqual ( "Promise" )
32+ } )
33+
34+ test ( 'has() should return a promise' , ( ) => {
35+ expect ( adapter . has ( '/a-key' ) . constructor . name ) . toEqual ( "Promise" )
36+ } )
37+
38+ test ( 'keys() should return a promise' , ( ) => {
39+ expect ( adapter . keys ( ) . constructor . name ) . toEqual ( "Promise" )
40+ } )
41+
42+ test ( 'put() should return a promise' , ( ) => {
43+ expect ( adapter . put ( '/a-key' , { } ) . constructor . name ) . toEqual ( "Promise" )
44+ } )
45+
2646 it ( 'should save and read' , async ( ) => {
2747 await adapter . put ( '/a-key' , { views : [ { time : 1490623474639 } ] } ) ;
2848
You can’t perform that action at this time.
0 commit comments