Skip to content

Commit f568502

Browse files
authored
test: update assertions after some react canary changes (#2885)
* test: update assertions after some react canary changes * test: update selector to use rel="expect"
1 parent ae86215 commit f568502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/static.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ test<FixtureTestContext>('linked static resources are placed in correct place in
9393
...Array.from(document('script[src]')).map((elem) => {
9494
return elem.attribs.src
9595
}),
96-
...Array.from(document('link[href]')).map((elem) => {
96+
...Array.from(document('link[href]:not([rel="expect"])')).map((elem) => {
9797
return elem.attribs.href
9898
}),
9999
...Array.from(document('img[src]')).map((elem) => {
@@ -143,7 +143,7 @@ test<FixtureTestContext>('linked static resources are placed in correct place in
143143
...Array.from(document('script[src]')).map((elem) => {
144144
return elem.attribs.src
145145
}),
146-
...Array.from(document('link[href]')).map((elem) => {
146+
...Array.from(document('link[href]:not([rel="expect"])')).map((elem) => {
147147
return elem.attribs.href
148148
}),
149149
...Array.from(document('img[src]')).map((elem) => {

0 commit comments

Comments
 (0)