Skip to content

Commit

Permalink
Update tag-replacer.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
techxplorer committed Sep 24, 2024
1 parent a4c1f5e commit b6ae053
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/lib/tag-replacer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,33 @@ describe( "TagReplacer", () => {

} );

it( "should not crash of the replacer is empty", () => {

const tagReplacer = new TagReplacer( testPassPath );
tagReplacer.tagMappings = {};

const actualTagList = tagReplacer.replaceTags( testTagList );

assert.deepEqual(
actualTagList,
actualTagList
);

} );

it( "should not crash of the list of tags is empty", () => {

const tagReplacer = new TagReplacer( testPassPath );

const actualTagList = tagReplacer.replaceTags( [] );

assert.deepEqual(
actualTagList,
[]
);

} );

} );

} );

0 comments on commit b6ae053

Please sign in to comment.