Skip to content

Commit 8df9d8e

Browse files
committed
fix typo
1 parent 56feb4d commit 8df9d8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const checkHeaders = ({res, item}) => {
3535
expect(res.headers.get('Cache-control')).to.equal('no-cache');
3636

3737
if (State.spec_version >= 11) {
38-
expect(Date.parse(res.headers.get('Last-Modified'))).to.be.closeTo(Date.now(), 10000);
3938
expect(res.headers.get('Last-Modified')).to.satisfy(util.validDate);
39+
expect(Date.parse(res.headers.get('Last-Modified'))).to.be.closeTo(Date.now(), 10000);
4040
}
4141
};
4242

@@ -53,8 +53,8 @@ const checkListHeaders = ({entry, item}) => {
5353
}
5454

5555
if (State.spec_version >= 11) {
56-
expect(Date.parse(entry['Last-Modified'])).to.be.closeTo(Date.now(), 10000);
5756
expect(entry['Last-Modified']).to.satisfy(util.validDate);
57+
expect(Date.parse(entry['Last-Modified'])).to.be.closeTo(Date.now(), 10000);
5858
}
5959
};
6060

0 commit comments

Comments
 (0)