Skip to content

Commit 0ef693c

Browse files
author
Timothy Wang
committed
fix unit tests
1 parent 08ac5a1 commit 0ef693c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/detection-e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: 14.x
13+
node-version: 18.x
1414
- name: Test framework detection
1515
run: |
1616
npm ci

src/core/func-core-tools.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe("funcCoreTools", () => {
147147
},
148148
});
149149

150-
await expect(async () => await fct.getLatestCoreToolsRelease(4)).rejects.toThrowError("Cannot find the latest version for v4");
150+
await expect(async () => await fct.getLatestCoreToolsRelease(4)).rejects.toThrowError("Error fetching Function Core Tools releases");
151151
});
152152

153153
it("should throw an error if no release match the specified version", async () => {
@@ -158,7 +158,7 @@ describe("funcCoreTools", () => {
158158
releases: {},
159159
});
160160

161-
await expect(async () => await fct.getLatestCoreToolsRelease(4)).rejects.toThrowError("Cannot find release for 4.0.0");
161+
await expect(async () => await fct.getLatestCoreToolsRelease(4)).rejects.toThrowError("Error fetching Function Core Tools releases");
162162
});
163163

164164
it("should throw an error if there's no compatible package", async () => {

0 commit comments

Comments
 (0)