Skip to content

Commit

Permalink
Fix container push test. (#2990)
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack authored Aug 26, 2024
1 parent 1e0bf11 commit dfe61ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/cli/test/unit/commands/container/push.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,12 @@ describe('container push', function () {
const dockerfiles = sandbox.stub(DockerHelper, 'getDockerfiles')
.returns(['/path/to/Dockerfile.web'])
const build = sandbox.stub(DockerHelper, 'buildImage')
build.withArgs('/path/to/Dockerfile.web', 'registry.heroku.com/testapp/web', [])
build.withArgs('/path/to/Dockerfile.worker', 'registry.heroku.com/testapp/worker', [])
build.withArgs({
dockerfile: '/path/to/Dockerfile.web',
resource: 'registry.heroku.com/testapp/web',
buildArgs: [],
})

const push = sandbox.stub(DockerHelper, 'pushImage')
push.withArgs('registry.heroku.com/testapp/web')
push.withArgs('registry.heroku.com/testapp/worker')
Expand Down

0 comments on commit dfe61ce

Please sign in to comment.