Skip to content

Commit 89002f3

Browse files
committed
fix: do not depend on test host timezone
1 parent 86d8fe1 commit 89002f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/files/format-mtime.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const expect = chai.expect
1010

1111
describe('format-mtime', function () {
1212
it('formats mtime', function () {
13-
expect(formatMtime({ secs: 100, nsecs: 0 })).to.equal('Jan 1, 1970, 1:01:40 AM GMT+1')
13+
expect(formatMtime({ secs: 100, nsecs: 0 })).to.include('Jan 1, 1970')
1414
})
1515

1616
it('formats empty mtime', function () {
17-
expect(formatMtime()).to.equal('Jan 1, 1970, 1:00:00 AM GMT+1')
17+
expect(formatMtime()).to.include('Jan 1, 1970')
1818
})
1919
})

0 commit comments

Comments
 (0)