Skip to content

Commit d8f2c25

Browse files
fix(deps): update dependency @netlify/open-api to ^2.13.0 (#4636)
* fix(deps): update dependency @netlify/open-api to ^2.13.0 * test: update snapshots for operations.test.ts * test: fix test for required query parameter to use something with a required query parameter Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: khen <[email protected]>
1 parent a3e8f99 commit d8f2c25

File tree

7 files changed

+404
-14368
lines changed

7 files changed

+404
-14368
lines changed

package-lock.json

Lines changed: 8 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/js-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"node client"
4242
],
4343
"dependencies": {
44-
"@netlify/open-api": "^2.12.0",
44+
"@netlify/open-api": "^2.13.0",
4545
"lodash-es": "^4.17.21",
4646
"micro-api-client": "^3.3.0",
4747
"node-fetch": "^3.0.0",

packages/js-client/src/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,12 @@ test('Validates required path parameters', async (t) => {
292292
})
293293

294294
test('Validates required query parameters', async (t) => {
295-
const accountSlug = uuidv4()
296-
const scope = nock(origin).post(`${pathPrefix}/${accountSlug}/members`).reply(200)
295+
const zone_id = uuidv4()
296+
const scope = nock(origin).post(`${pathPrefix}/dns_zones/${zone_id}/transfer`).reply(200)
297297

298298
const client: any = getClient()
299-
await t.throwsAsync(client.addMemberToAccount({ account_slug: accountSlug }), {
300-
message: "Missing required query variable 'email'",
299+
await t.throwsAsync(client.transferDnsZone({ zone_id }), {
300+
message: "Missing required query variable 'account_id'",
301301
})
302302

303303
t.false(scope.isDone())

0 commit comments

Comments
 (0)