diff --git a/frontend/.travis.yml b/frontend/.travis.yml index 684ee62d88..1f38c41166 100644 --- a/frontend/.travis.yml +++ b/frontend/.travis.yml @@ -1,7 +1,7 @@ sudo: false language: node_js node_js: -- 6 +- 8 before_install: yarn global add greenkeeper-lockfile@1 before_script: greenkeeper-lockfile-update script: yarn run test:ci diff --git a/frontend/package.json b/frontend/package.json index aacf0bb01d..3941ef39e4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/finn-no/unleash/issues" }, "engines": { - "node": ">=6" + "node": ">=8" }, "license": "Apache-2.0", "scripts": { diff --git a/frontend/src/component/common/__tests__/util-test.jsx b/frontend/src/component/common/__tests__/util-test.jsx index 94eab6c84b..0989de98bb 100644 --- a/frontend/src/component/common/__tests__/util-test.jsx +++ b/frontend/src/component/common/__tests__/util-test.jsx @@ -1,7 +1,7 @@ import { formatFullDateTime } from '../util'; test('formats dates correctly', () => { - expect(formatFullDateTime(1487861809466)).toEqual('02/23/2017, 2:56:49 PM'); - expect(formatFullDateTime(1487232809466)).toEqual('02/16/2017, 8:13:29 AM'); - expect(formatFullDateTime(1477232809466)).toEqual('10/23/2016, 2:26:49 PM'); + expect(formatFullDateTime(1487861809466)).toEqual('2017-02-23 15:56:49'); + expect(formatFullDateTime(1487232809466)).toEqual('2017-02-16 09:13:29'); + expect(formatFullDateTime(1477232809466)).toEqual('2016-10-23 16:26:49'); });