Skip to content

Commit

Permalink
fix: test and error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Jan 14, 2025
1 parent 1ef2478 commit 6e53b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export async function createDelegation(audienceDID, opts) {
const client = await getClient()

if (client.currentSpace() == null) {
throw new Error('no current space, use `w3 space register` to create one.')
throw new Error('no current space, use `w3 space create` to create one.')
}
const audience = DID.parse(audienceDID)

Expand Down
2 changes: 1 addition & 1 deletion test/bin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const testW3 = {
const { output, status } = await w3.args(['--version']).join()

assert.equal(status.code, 0)
assert.match(output, /w3, \d.\d.\d/)
assert.match(output, /w3, \d+\.\d+\.\d+/)
}),

'w3 whoami': test(async (assert) => {
Expand Down

0 comments on commit 6e53b5f

Please sign in to comment.