Skip to content

Commit

Permalink
fix formatting drift
Browse files Browse the repository at this point in the history
  • Loading branch information
mble-sfdc committed Jan 31, 2024
1 parent 66727b9 commit 78d1197
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions packages/spaces/commands/drains/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ const cmd = {
needsApp: false,
needsAuth: true,
flags: [
{ name: 'space', char: 's', hasValue: true, description: 'space for which to get log drain', required: true },
{ name: 'json', description: 'output in json format' },
{name: 'space', char: 's', hasValue: true, description: 'space for which to get log drain', required: true},
{name: 'json', description: 'output in json format'},
],
run: cli.command(run),
}

module.exports = [
Object.assign({topic: 'spaces', command: 'drains:get', hidden: false}, cmd),
Object.assign({topic: 'drains', command: 'get', hidden: true}, cmd)
Object.assign({topic: 'drains', command: 'get', hidden: true}, cmd),
]
2 changes: 1 addition & 1 deletion packages/spaces/commands/drains/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ const cmd = {

module.exports = [
Object.assign({topic: 'spaces', command: 'drains:set', hidden: false}, cmd),
Object.assign({topic: 'drains', command: 'set', hidden: true}, cmd)
Object.assign({topic: 'drains', command: 'set', hidden: true}, cmd),
]
7 changes: 3 additions & 4 deletions packages/spaces/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
'use strict'

const _ = require('lodash')
'use strict'

exports.topics = [
{name: 'spaces', description: 'manage heroku private spaces'},
{name: 'trusted-ips', hidden: true},
]

exports.commands = _.flatten([
exports.commands = [
require('./commands'),
require('./commands/create'),
require('./commands/destroy'),
Expand Down Expand Up @@ -37,4 +36,4 @@ exports.commands = _.flatten([
require('./commands/outbound-rules/add'),
require('./commands/outbound-rules/remove'),
require('./commands/hosts'),
])
].flat()
2 changes: 1 addition & 1 deletion packages/spaces/test/unit/commands/drains/get.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cmds.forEach(cmd => {
})
return cmd.run({flags: {space: 'my-space'}})
.then(() => expect(cli.stdout).to.equal(
`https://example.com (d.a55ecbe1-5513-4d19-91e4-58a08b419d19)\n`,
'https://example.com (d.a55ecbe1-5513-4d19-91e4-58a08b419d19)\n',
)).then(() => api.done())
})

Expand Down
2 changes: 1 addition & 1 deletion packages/spaces/test/unit/commands/drains/set.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cmds.forEach(cmd => {
})
return cmd.run({args: {url: 'https://example.com'}, flags: {space: 'my-space'}})
.then(() => expect(cli.stdout).to.equal(
`Successfully set drain https://example.com for my-space.\n`,
'Successfully set drain https://example.com for my-space.\n',
)).then(() => api.done())
})
})
Expand Down

0 comments on commit 78d1197

Please sign in to comment.