Skip to content

Commit e3a2021

Browse files
ci(action): update actions/setup-node digest to 30f0e7d (#522)
1 parent 95485f4 commit e3a2021

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
2222
- name: Use Node.js ${{ matrix.node_version }}
23-
uses: actions/setup-node@b4b18e5317cee56876918c4f099a680d3bca1cb8
23+
uses: actions/setup-node@30f0e7dc5aa0e546410a28dc80a10d8114ee873e
2424
with:
2525
node-version: ${{ matrix.node_version }}
2626
cache: npm

test/request.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
192192
const mock = fetchMock
193193
.sandbox()
194194
.mock("https://api.github.com/user/starred/octocat/hello-world", 204, {
195-
headers: {
196-
"content-length": 0,
197-
},
195+
body: undefined,
198196
});
199197

200198
request("PUT /user/starred/{owner}/{repo}", {
@@ -590,11 +588,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
590588
.catch((error) => {
591589
// We can't match on the entire string because the message differs between
592590
// Node versions.
593-
//
594-
// In v14 and v16, the message just mentions "signal" and has `instanceof`
595-
// as one word, whereas in v18 it contains the stringified signal and uses
596-
// proper English ("instance of").
597-
expect(error.message).toMatch(/to be an instance ?of AbortSignal/);
591+
expect(error.message).toMatch(/AbortSignal/);
598592
});
599593
});
600594

0 commit comments

Comments
 (0)