Skip to content

Commit 3f3f65f

Browse files
fix timezone test
1 parent cb61ced commit 3f3f65f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"ava": "*",
4949
"configstore": "^1.3.0",
5050
"execa": "^0.4.0",
51-
"moment": "^2.10.6",
5251
"strip-ansi": "^3.0.0",
5352
"xo": "*"
5453
},

test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import moment from 'moment';
2+
import moment from 'moment-timezone';
33
import execa from 'execa';
44
import stripAnsi from 'strip-ansi';
55

@@ -10,7 +10,7 @@ test('error', async t => {
1010
test('result', async t => {
1111
const {stdout} = await execa('./cli.js', ['SamVerschueren']);
1212

13-
t.is(stripAnsi(stdout), `${moment().format('HH:mm - D MMM. YYYY')}\n`);
13+
t.is(stripAnsi(stdout), `${moment().tz('Europe/Brussels').format('HH:mm - D MMM. YYYY')}\n`);
1414
});
1515

1616
test('formatting', async t => {

0 commit comments

Comments
 (0)