Skip to content

Commit d9b787c

Browse files
committed
test: adds test for additional tags
1 parent c475614 commit d9b787c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/prepare/index.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,11 @@ describe('@iteratec/semantic-release-docker', function() {
5757
return expect(prepare(config, context)).to.eventually.deep.equal(['hello-world']);
5858
});
5959

60+
it('should add multiple tags to an image', function() {
61+
(context.options.prepare![0] as DockerPluginConfig).imageName = 'hello-world';
62+
(context.options.prepare![0] as DockerPluginConfig).additionalTags = ['tag1', 'tag2'];
63+
return expect(prepare(config, context)).to.eventually.have.length(3);
64+
});
65+
6066
});
6167
});

0 commit comments

Comments
 (0)