Skip to content

Commit e1966ed

Browse files
committed
fixup
1 parent 93481cf commit e1966ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/lib/commands/token.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ t.test('token create', async t => {
259259
return body.name === 'test-token' &&
260260
body.password === 'test-password' &&
261261
body.cidr_whitelist.length === 2 &&
262-
body.description === undefined
262+
body.token_description === undefined
263263
}).reply(201, {
264264
token: 'n3wt0k3n',
265265
access: 'read-write',
@@ -289,7 +289,7 @@ t.test('token create read only', async t => {
289289
registry.nock.post('/-/npm/v1/tokens', body => {
290290
return body.name === 'readonly-token' &&
291291
body.password === 'test-password' &&
292-
body.description === undefined
292+
body.token_description === undefined
293293
}).reply(201, {
294294
token: 'n3wt0k3n',
295295
access: 'read-only',
@@ -350,7 +350,7 @@ t.test('token create with description', async t => {
350350
registry.nock.post('/-/npm/v1/tokens', body => {
351351
return body.name === 'description-token' &&
352352
body.password === 'test-password' &&
353-
body.description === 'My custom token for CI/CD'
353+
body.token_description === 'My custom token for CI/CD'
354354
}).reply(201, {
355355
token: 'n3wt0k3n',
356356
access: 'read-write',

0 commit comments

Comments
 (0)