Skip to content

Commit b4915fa

Browse files
committed
fix unit tests
1 parent 63c1bcb commit b4915fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/fetch.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ describe('fetch styles manually', () => {
175175
});
176176

177177
it('fetches styles only from the given elements', async () => {
178-
fetchMock.getOnce('end:target5.css', target5Css);
179-
fetchMock.getOnce('end:target6.css', target6Css);
178+
fetchMock.getOnce('end:target5.css', requestWithCSSType(target5Css));
179+
fetchMock.getOnce('end:target6.css', requestWithCSSType(target6Css));
180180

181181
const el1 = document.getElementById('el1')!;
182182
const el2 = document.getElementById('el2')!;

0 commit comments

Comments
 (0)