Skip to content

Commit 9fa2e96

Browse files
committed
lint
1 parent 5cc399f commit 9fa2e96

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/parse-selector.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,16 +730,16 @@ describe('Selector Nodes', () => {
730730
it('should parse trailing space in :is() pseudo-class', () => {
731731
const root = parse_selector(':is(a )')
732732
const selector = root.first_child
733-
const pseudo = selector?.first_child!
734-
const [list] = pseudo.children
733+
const pseudo = selector?.first_child
734+
const [list] = pseudo!.children
735735
const [a] = list.children
736736
expect(a.text).toBe('a')
737737
})
738738

739739
it('should parse trailing tab in :is() pseudo-class', () => {
740740
const root = parse_selector(':is(a )')
741-
const selector = root.first_child
742-
const pseudo = selector?.first_child!
741+
const selector = root.first_child!
742+
const pseudo = selector.first_child!
743743
const [list] = pseudo.children
744744
const [a] = list.children
745745
expect(a.text).toBe('a')

src/parse.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ describe('Core Nodes', () => {
382382
for (let i = 0; i < children.length - 1; i++) {
383383
const nextSibling = children[i].next_sibling
384384
expect(nextSibling).not.toBeNull()
385-
expect(nextSibling.start).toBe(children[i + 1].start)
385+
expect(nextSibling!.start).toBe(children[i + 1].start)
386386
}
387387

388388
expect(children[children.length - 1].next_sibling).toBeNull()
@@ -516,7 +516,7 @@ describe('Core Nodes', () => {
516516
for (let i = 0; i < children.length - 1; i++) {
517517
const nextSibling = children[i].next_sibling
518518
expect(nextSibling).not.toBeNull()
519-
expect(nextSibling.start).toBe(children[i + 1].start)
519+
expect(nextSibling!.start).toBe(children[i + 1].start)
520520
}
521521

522522
expect(children[children.length - 1].next_sibling).toBeNull()

0 commit comments

Comments
 (0)