File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ describe('albums', () => {
14
14
const fakePhotosProm = photoFactory
15
15
. createManyFakePhotos ( 5 , 1 )
16
16
. then ( fakePhotosToMock => axios . setMockPhotos ( fakePhotosToMock ) . then ( ( ) => fakePhotosToMock ) ) ;
17
- return Promise . all ( [ fakeAlbumsProm , fakePhotosProm ] ) . then ( ( [ fakeAlbums ] ) => {
17
+ return Promise . all ( [ fakeAlbumsProm , fakePhotosProm ] ) . then ( async ( [ fakeAlbums ] ) => {
18
18
const hrstartNoChached = moment ( ) ;
19
- query ( getAlbum ( fakeAlbums [ 0 ] . id ) ) ;
19
+ await query ( getAlbum ( fakeAlbums [ 0 ] . id ) ) ;
20
20
const hrendNoCached = moment ( ) . diff ( hrstartNoChached ) ;
21
21
const hrstartCached = moment ( ) ;
22
- query ( getAlbum ( fakeAlbums [ 0 ] . id ) ) ;
22
+ await query ( getAlbum ( fakeAlbums [ 0 ] . id ) ) ;
23
23
const hrendCached = moment ( ) . diff ( hrstartCached ) ;
24
24
return expect ( hrendNoCached - hrendCached ) . toBeGreaterThan ( 100 ) ;
25
25
} ) ;
You can’t perform that action at this time.
0 commit comments