Skip to content

Commit

Permalink
Clean up line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Feb 28, 2024
1 parent 215a00d commit 87220c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/test/unit/commands/container/run.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ describe('container run', () => {
await runCommand(Cmd, [
'--app',
'testapp',
]).catch((error) => {
]).catch(error => {
const {message} = error as {message: string}
expect(message).to.contain('Requires one process type')
expect(stdout.output, 'to be empty')
})
})

it('runs a container', async () => {
const dockerfiles = sandbox.stub(DockerHelper, 'getDockerfiles')
.returns(['/path/to/Dockerfile'])
Expand All @@ -40,6 +41,7 @@ describe('container run', () => {
sandbox.assert.calledOnce(dockerfiles)
sandbox.assert.calledOnce(run)
})

it('runs a container with a command', async () => {
const dockerfiles = sandbox.stub(DockerHelper, 'getDockerfiles')
.returns(['/path/to/Dockerfile'])
Expand All @@ -56,6 +58,7 @@ describe('container run', () => {
sandbox.assert.calledOnce(dockerfiles)
sandbox.assert.calledOnce(run)
})

it('requires a known dockerfile', async () => {
const dockerfiles = sandbox.stub(DockerHelper, 'getDockerfiles')
.returns([])
Expand Down

0 comments on commit 87220c7

Please sign in to comment.