Skip to content

Commit

Permalink
Fixed tests for quiet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
davidthor committed Dec 2, 2023
1 parent 32c42c9 commit 22576fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions opentofu/test/unit/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ describe('build commands', () => {

expect(docker_command_args[0]).to.equal('docker');
expect(docker_build_args[0]).to.equal('build');
expect(docker_build_args[1]).to.equal('-f');
expect(docker_build_args[1]).to.equal('--quiet');
expect(docker_build_args[2]).to.equal('-f');
// Skip [3], it's a dockerfile
expect(docker_build_args[3]).to.equal(directory);
expect(docker_build_args[4]).to.equal(directory);
});
});
5 changes: 3 additions & 2 deletions pulumi/test/unit/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ describe('build commands', () => {

expect(docker_command_args[0]).to.equal('docker');
expect(docker_build_args[0]).to.equal('build');
expect(docker_build_args[1]).to.equal('-f');
expect(docker_build_args[1]).to.equal('--quiet');
expect(docker_build_args[2]).to.equal('-f');
// Skip [3], it's a dockerfile
expect(docker_build_args[3]).to.equal(directory);
expect(docker_build_args[4]).to.equal(directory);
});
});

0 comments on commit 22576fe

Please sign in to comment.