@@ -34,9 +34,7 @@ module.exports = function testAdapter(options) {
3434 } ) ;
3535
3636 test ( 'getAll() should return a promise' , ( ) => {
37- expect ( adapter . getAll ( { pathname : '/' } ) . constructor . name ) . toEqual (
38- 'Promise'
39- ) ;
37+ expect ( adapter . getAll ( { pathname : '/' } ) . constructor . name ) . toEqual ( 'Promise' ) ;
4038 } ) ;
4139
4240 test ( 'has() should return a promise' , ( ) => {
@@ -126,9 +124,7 @@ module.exports = function testAdapter(options) {
126124 await adapter . put ( '/another-key' , { views : [ { time : 1490623478639 } ] } ) ;
127125 await adapter . put ( '/b-key' , { views : [ { time : 1490623484639 } ] } ) ;
128126
129- expect (
130- await adapter . getAll ( { pathname : '/' , before : 1490623478640 } )
131- ) . toEqual ( {
127+ expect ( await adapter . getAll ( { pathname : '/' , before : 1490623478640 } ) ) . toEqual ( {
132128 '/a-key' : { views : [ { time : 1490623474639 } ] } ,
133129 '/another-key' : { views : [ { time : 1490623478639 } ] } ,
134130 '/b-key' : { views : [ ] } ,
@@ -140,9 +136,7 @@ module.exports = function testAdapter(options) {
140136 await adapter . put ( '/another-key' , { views : [ { time : 1490623478639 } ] } ) ;
141137 await adapter . put ( '/b-key' , { views : [ { time : 1490623484639 } ] } ) ;
142138
143- expect (
144- await adapter . getAll ( { pathname : '/' , after : 1490623478638 } )
145- ) . toEqual ( {
139+ expect ( await adapter . getAll ( { pathname : '/' , after : 1490623478638 } ) ) . toEqual ( {
146140 '/a-key' : { views : [ ] } ,
147141 '/another-key' : { views : [ { time : 1490623478639 } ] } ,
148142 '/b-key' : { views : [ { time : 1490623484639 } ] } ,
0 commit comments