Skip to content

Commit a7055ac

Browse files
authored
Merge pull request #34 from Milly/fixtest
☕ Fix test and run build-npm in CI test
2 parents b377d3a + f49dbd4 commit a7055ac

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Test
22

33
env:
44
DENO_VERSION: 1.x
5+
NODE_VERSION: 16.x
56

67
on:
78
schedule:
@@ -50,3 +51,17 @@ jobs:
5051
run: |
5152
deno bench
5253
timeout-minutes: 5
54+
55+
build-npm:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v3
59+
- uses: denoland/setup-deno@v1
60+
with:
61+
deno-version: ${{ env.DENO_VERSION }}
62+
- uses: actions/setup-node@v3
63+
with:
64+
node-version: ${{ env.NODE_VERSION }}
65+
registry-url: "https://registry.npmjs.org"
66+
- name: Build
67+
run: deno task build-npm

is_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ Deno.test("is", async (t) => {
514514
await t.step(
515515
"only has entries that are the same as the `is*` function aliases",
516516
() => {
517-
const aliases = casesOfAliasAndIsFunction.map(([a]) => a).toSorted();
518-
assertEquals(Object.keys(is).toSorted(), aliases);
517+
const aliases = casesOfAliasAndIsFunction.map(([a]) => a).sort();
518+
assertEquals(Object.keys(is).sort(), aliases);
519519
},
520520
);
521521
});

0 commit comments

Comments
 (0)