Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Dec 9, 2024
1 parent cec947b commit b819f5a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/twinkletag.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
describe('modules/twinkletag', () => {
describe('checkIncompatible', () => {
test('no conflicts', () => {
test('no conflicts, 0 tags to check', () => {
const incompatibleTags = ['Bad GIF', 'Bad JPEG', 'Bad SVG', 'Bad format'];
const tagsToCheck = [];
const expected = undefined;
expect(Twinkle.tag.checkIncompatible(incompatibleTags, tagsToCheck)).toBe(expected);
});

test('no conflicts, 1 tag to check', () => {
const incompatibleTags = ['Bad GIF', 'Bad JPEG', 'Bad SVG', 'Bad format'];
const tagsToCheck = ['Better source requested'];
const expected = undefined;
Expand Down

0 comments on commit b819f5a

Please sign in to comment.