Skip to content

Commit

Permalink
Updated help and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwilaby committed Apr 29, 2024
1 parent 7bdaad7 commit 3b1dd0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions packages/cli/src/commands/spaces/transfer.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import color from '@heroku-cli/color'
import {Command, flags} from '@heroku-cli/command'
import {ux} from '@oclif/core'
import heredoc from 'tsheredoc';

export default class Transfer extends Command {
static topic = 'spaces';
static description = 'transfer a space to another team';
static help = 'Example:\n\n $ heroku spaces:transfer --space=space-name --team=team-name\n Transferring space-name to team-name... done\n';
static description = heredoc(`
transfer a space to another team
Example:
$ heroku spaces:transfer --space=space-name --team=team-name
Transferring space-name to team-name... done
`)

static flags = {
space: flags.string({required: true, description: 'name of space'}),
team: flags.string({required: true, description: 'desired owner of space'}),
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/test/unit/commands/transfer.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('spaces:transfer', function () {
space,
])
} catch (error) {
const {message} = error as {message: string}
expect(message).to.eq(message)
const {message: errorMessage} = error as {message: string}
expect(errorMessage).to.eq(message)
}

api.done()
Expand Down

0 comments on commit 3b1dd0a

Please sign in to comment.