1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

chore(travis) build with node 8

This commit is contained in:
Ivar Conradi Østhus 2018-02-02 12:52:31 +01:00
parent 5ebf2e71b9
commit 6cf9c689db
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
sudo: false sudo: false
language: node_js language: node_js
node_js: node_js:
- 6 - 8
before_install: yarn global add greenkeeper-lockfile@1 before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update before_script: greenkeeper-lockfile-update
script: yarn run test:ci script: yarn run test:ci

View File

@ -20,7 +20,7 @@
"url": "https://github.com/finn-no/unleash/issues" "url": "https://github.com/finn-no/unleash/issues"
}, },
"engines": { "engines": {
"node": ">=6" "node": ">=8"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {

View File

@ -1,7 +1,7 @@
import { formatFullDateTime } from '../util'; import { formatFullDateTime } from '../util';
test('formats dates correctly', () => { test('formats dates correctly', () => {
expect(formatFullDateTime(1487861809466)).toEqual('02/23/2017, 2:56:49 PM'); expect(formatFullDateTime(1487861809466)).toEqual('2017-02-23 15:56:49');
expect(formatFullDateTime(1487232809466)).toEqual('02/16/2017, 8:13:29 AM'); expect(formatFullDateTime(1487232809466)).toEqual('2017-02-16 09:13:29');
expect(formatFullDateTime(1477232809466)).toEqual('10/23/2016, 2:26:49 PM'); expect(formatFullDateTime(1477232809466)).toEqual('2016-10-23 16:26:49');
}); });