Skip to content

Commit 2e4c6e1

Browse files
philibeachambo-e
andauthored
test(use-i18n): update test (#630)
* test(use-i18n): update test * fix: check latest lts Co-authored-by: Emmanuel Chambon <[email protected]>
1 parent bd29497 commit 2e4c6e1

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
uses: actions/[email protected]
1212
with:
1313
node-version: 17
14+
check-latest: true
1415
cache: 'yarn'
1516
- run: yarn
1617
- run: yarn run build
@@ -23,6 +24,7 @@ jobs:
2324
uses: actions/[email protected]
2425
with:
2526
node-version: 17
27+
check-latest: true
2628
cache: 'yarn'
2729
- run: yarn
2830
- run: yarn run build
@@ -31,14 +33,14 @@ jobs:
3133
runs-on: ubuntu-20.04
3234
strategy:
3335
matrix:
34-
# 17.2 seems to have a bug with Intl.DateTimeFormat
35-
node: [ '14', '16', '17.1' ]
36+
node: [ '14', '16', '17' ]
3637
steps:
3738
- uses: actions/[email protected]
3839
- name: Use Node.js
3940
uses: actions/[email protected]
4041
with:
4142
node-version: ${{ matrix.node }}
43+
check-latest: true
4244
cache: 'yarn'
4345
- run: yarn
4446
- run: yarn run build
@@ -65,6 +67,7 @@ jobs:
6567
uses: actions/[email protected]
6668
with:
6769
node-version: 17
70+
check-latest: true
6871
- run: yarn --immutable --inline-builds
6972
- run: yarn run build
7073
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc

.github/workflows/pull_request_title.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
uses: actions/[email protected]
1414
with:
1515
node-version: 17
16+
check-latest: true
1617
cache: 'yarn'
1718
- run: yarn
1819
- run: echo '${{ github.event.pull_request.title }}' | yarn run commitlint

packages/use-i18n/src/__tests__/__snapshots__/formatDate.ts.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ exports[`formatDate should work with custom format and locale en 2`] = `"Thursda
1818

1919
exports[`formatDate should work with custom format and locale en 3`] = `"Thursday, F 13, 20 AD, 03:28:00 PM Coordinated Universal Time"`;
2020

21-
exports[`formatDate should work with custom format and locale es 1`] = `"jueves, 13 F 20 d. C. 16:28:00 (tiempo universal coordinado)"`;
21+
exports[`formatDate should work with custom format and locale es 1`] = `"jueves, 13 F 20 d. C., 16:28:00 (tiempo universal coordinado)"`;
2222

23-
exports[`formatDate should work with custom format and locale es 2`] = `"jueves, 13 F 20 d. C. 15:28:00 (tiempo universal coordinado)"`;
23+
exports[`formatDate should work with custom format and locale es 2`] = `"jueves, 13 F 20 d. C., 15:28:00 (tiempo universal coordinado)"`;
2424

25-
exports[`formatDate should work with custom format and locale es 3`] = `"jueves, 13 F 20 d. C. 15:28:00 (tiempo universal coordinado)"`;
25+
exports[`formatDate should work with custom format and locale es 3`] = `"jueves, 13 F 20 d. C., 15:28:00 (tiempo universal coordinado)"`;
2626

27-
exports[`formatDate should work with custom format and locale fr 1`] = `"jeudi 13 F 20 ap. J.-C., 16:28:00 Temps universel coordonné"`;
27+
exports[`formatDate should work with custom format and locale fr 1`] = `"jeudi 13 F 20 ap. J.-C., 16:28:00 temps universel coordonné"`;
2828

29-
exports[`formatDate should work with custom format and locale fr 2`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 Temps universel coordonné"`;
29+
exports[`formatDate should work with custom format and locale fr 2`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 temps universel coordonné"`;
3030

31-
exports[`formatDate should work with custom format and locale fr 3`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 Temps universel coordonné"`;
31+
exports[`formatDate should work with custom format and locale fr 3`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 temps universel coordonné"`;
3232

3333
exports[`formatDate should work with custom format and locale ro 1`] = `"joi, 13 F 20 d.Hr., 16:28:00 Timpul universal coordonat"`;
3434

@@ -40,7 +40,7 @@ exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28
4040

4141
exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "en" 1`] = `"February 13, 2020, 3:28 PM"`;
4242

43-
exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "es" 1`] = `"13 de febrero de 2020 15:28"`;
43+
exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "es" 1`] = `"13 de febrero de 2020, 15:28"`;
4444

4545
exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "fr" 1`] = `"13 février 2020, 15:28"`;
4646

@@ -50,7 +50,7 @@ exports[`formatDate should work with format "hour", for date = "1581607680000" a
5050

5151
exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "en" 1`] = `"February 13, 2020, 3:28 PM"`;
5252

53-
exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "es" 1`] = `"13 de febrero de 2020 15:28"`;
53+
exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "es" 1`] = `"13 de febrero de 2020, 15:28"`;
5454

5555
exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "fr" 1`] = `"13 février 2020, 15:28"`;
5656

@@ -60,7 +60,7 @@ exports[`formatDate should work with format "hour", for date = "new Date(2020, 1
6060

6161
exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "en" 1`] = `"February 13, 2020, 4:28 PM"`;
6262

63-
exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "es" 1`] = `"13 de febrero de 2020 16:28"`;
63+
exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "es" 1`] = `"13 de febrero de 2020, 16:28"`;
6464

6565
exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "fr" 1`] = `"13 février 2020, 16:28"`;
6666

0 commit comments

Comments
 (0)