Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjan-purbey committed Feb 11, 2025
1 parent ca91e95 commit 89410dc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { test } from '../../test';

export default test({
test(assert, target) {
const p = target.querySelector('p');

assert.equal(p?.dir, 'rtl');
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p dir="rtl">text</p>.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { test } from '../../test';

export default test({
test(assert, target) {
const input = target.querySelector('input');

assert.equal(input?.checked, true);
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!--[--><!---->.<input><!--]-->
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.<input checked />

0 comments on commit 89410dc

Please sign in to comment.