Skip to content

Commit f6e445d

Browse files
committed
test: update test assertion
1 parent af7f208 commit f6e445d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/nuxt/components/compare/ComparisonGrid.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ describe('ComparisonGrid', () => {
4747
columns: cols(longName, 'short'),
4848
},
4949
})
50-
const spans = component.findAll('.truncate')
51-
const longSpan = spans.find(s => s.text() === longName)
52-
expect(longSpan?.attributes('title')).toBe(longName)
50+
const links = component.findAll('a.truncate')
51+
const longLink = links.find(a => a.text() === longName)
52+
expect(longLink?.attributes('title')).toBe(longName)
5353
})
5454
})
5555

0 commit comments

Comments
 (0)