Skip to content

Commit 4f09f4d

Browse files
fix: use stricter semver regex in User-Agent test assertions
Co-Authored-By: Chris K <ckorhonen@gmail.com>
1 parent 8603789 commit 4f09f4d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/client.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("OpenSeaClient", () => {
4141
method: "GET",
4242
headers: expect.objectContaining({
4343
Accept: "application/json",
44-
"User-Agent": expect.stringMatching(/^opensea-cli\/\d+/),
44+
"User-Agent": expect.stringMatching(/^opensea-cli\/\d+\.\d+\.\d+/),
4545
"x-api-key": "test-key",
4646
}),
4747
}),
@@ -96,7 +96,7 @@ describe("OpenSeaClient", () => {
9696
method: "POST",
9797
headers: expect.objectContaining({
9898
Accept: "application/json",
99-
"User-Agent": expect.stringMatching(/^opensea-cli\/\d+/),
99+
"User-Agent": expect.stringMatching(/^opensea-cli\/\d+\.\d+\.\d+/),
100100
"x-api-key": "test-key",
101101
}),
102102
}),
@@ -116,7 +116,7 @@ describe("OpenSeaClient", () => {
116116
headers: expect.objectContaining({
117117
Accept: "application/json",
118118
"Content-Type": "application/json",
119-
"User-Agent": expect.stringMatching(/^opensea-cli\/\d+/),
119+
"User-Agent": expect.stringMatching(/^opensea-cli\/\d+\.\d+\.\d+/),
120120
"x-api-key": "test-key",
121121
}),
122122
body: JSON.stringify({ name: "test" }),

0 commit comments

Comments
 (0)