Skip to content

Commit

Permalink
fix: add tests for #227
Browse files Browse the repository at this point in the history
  • Loading branch information
taoqf committed Dec 25, 2024
1 parent d903da2 commit 5856ee2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/tests/issues/227.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { valid } = require('@test/test-target');

describe('issue 227', function () {
it('valid tags', function () {
valid('<p abc</p').should.be.false(); // false
valid('<div<p abc</p></span>').should.be.false(); // false
valid('<div><p abc</p></div>').should.be.true(); // true
valid('<div<p abc</a></div>').should.be.true(); // true
valid('@#><p').should.be.true(); // true
valid('<<>').should.be.true(); // true
});
});

0 comments on commit 5856ee2

Please sign in to comment.