Skip to content

Commit

Permalink
test: adds test for additional tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cmurczek-it committed Dec 27, 2018
1 parent c475614 commit d9b787c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/prepare/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,11 @@ describe('@iteratec/semantic-release-docker', function() {
return expect(prepare(config, context)).to.eventually.deep.equal(['hello-world']);
});

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

});
});

0 comments on commit d9b787c

Please sign in to comment.