mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-12 15:40:30 +08:00
chore: remove node 14 test
This commit is contained in:
parent
cf67d39992
commit
bd3dd67c9e
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -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
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user