Skip to content

Commit

Permalink
feat: enhance tests for obsolete attributes
Browse files Browse the repository at this point in the history
Added a check to ensure that the 'nowrap' attribute is not incorrectly flagged as obsolete in test cases. This increases the reliability of the ObsoHTML script and ensures more accurate detection of obsolete HTML attributes.

Signed-off-by: Jens Oliver Meiert <[email protected]>
  • Loading branch information
j9t committed Aug 19, 2024
1 parent 4dc6761 commit 511121b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/obsohtml.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('ObsoHTML', () => {
test('Detect obsolete minimized attributes', () => {
const result = spawnSync('node', ['bin/obsohtml.js', '-f', tempDir], { encoding: 'utf-8' });
expect(result.stdout).toContain("Found obsolete attribute 'noshade'");
expect(result.stdout).not.toContain("Found obsolete attribute 'nowrap'");
});

test('Detect obsolete elements in Twig file', () => {
Expand Down

0 comments on commit 511121b

Please sign in to comment.