Skip to content

Commit 014179d

Browse files
committed
Hot Fix
1 parent b1bc5c5 commit 014179d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/albums/cache.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ describe('albums', () => {
1414
const fakePhotosProm = photoFactory
1515
.createManyFakePhotos(5, 1)
1616
.then(fakePhotosToMock => axios.setMockPhotos(fakePhotosToMock).then(() => fakePhotosToMock));
17-
return Promise.all([fakeAlbumsProm, fakePhotosProm]).then(([fakeAlbums]) => {
17+
return Promise.all([fakeAlbumsProm, fakePhotosProm]).then(async ([fakeAlbums]) => {
1818
const hrstartNoChached = moment();
19-
query(getAlbum(fakeAlbums[0].id));
19+
await query(getAlbum(fakeAlbums[0].id));
2020
const hrendNoCached = moment().diff(hrstartNoChached);
2121
const hrstartCached = moment();
22-
query(getAlbum(fakeAlbums[0].id));
22+
await query(getAlbum(fakeAlbums[0].id));
2323
const hrendCached = moment().diff(hrstartCached);
2424
return expect(hrendNoCached - hrendCached).toBeGreaterThan(100);
2525
});

0 commit comments

Comments
 (0)