chore: remove node 14 test

This commit is contained in:
Sam Tolmay 2020-10-07 15:49:23 +02:00
parent cf67d39992
commit bd3dd67c9e
2 changed files with 3 additions and 18 deletions

View File

@ -8,8 +8,7 @@ on:
- develop
jobs:
# can't use matrix since tests are different between node 12 and 14
test-node-12:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Node
@ -21,21 +20,6 @@ jobs:
run: yarn install --immutable --immutable-cache
- name: Build packages
run: yarn build
# format tests don't pass on node 12 since icu is missing
# format tests don't pass on node 12 since icu is missing and tests don't work with locals
- name: Test packages
run: yarn test --ignore='@lowdefy/format'
test-node-14:
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/checkout@v2
- name: Check yarn cache integrity
run: yarn install --immutable --immutable-cache
- name: Build packages
run: yarn build
- name: Test packages
run: yarn test

View File

@ -1,5 +1,6 @@
import momentFormat from '../src/momentFormat';
// FIXME: Fails if run in a different timezone/locale
test('no options', () => {
expect(momentFormat()(new Date(1560414023345))).toEqual('2019-06-13T10:20:23+02:00');
expect(momentFormat({})(new Date(1560414023345))).toEqual('2019-06-13T10:20:23+02:00');