Skip to content

Commit

Permalink
Implementing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
monicaribeiro committed Feb 21, 2020
1 parent 6140e5e commit d7ad51a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/Gren.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,18 @@ describe('Gren', () => {
});
});

describe('_transformTagsIntoReleaseObjects', () => {
it('Should transform tags into release objects', () => {
const tag = { 'tag': { 'name': 'tagName', 'number': 3 }, 'releaseId': '12315', 'date': '2020-02-20T13:40:16Z' };

const receivedObject = gren._transformTagsIntoReleaseObjects([tag]);

assert.equals(tag.date, receivedObject.date);
assert.equals(tag.releaseId, receivedObject.id);
assert.equals(tag.name, receivedObject.name);
});
});

describe('_validateRequiredTagsExists', () => {
it('should failed if one tag is missing', () => {
const existingTagName = 'existing_tag';
Expand Down

0 comments on commit d7ad51a

Please sign in to comment.