From b4915fa8539651608cd5d75cfceddeb82b9bc343 Mon Sep 17 00:00:00 2001 From: Zacky Ma Date: Mon, 14 Oct 2024 10:15:36 -0700 Subject: [PATCH] fix unit tests --- tests/unit/fetch.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/fetch.test.ts b/tests/unit/fetch.test.ts index dd6fc41..67e7d37 100644 --- a/tests/unit/fetch.test.ts +++ b/tests/unit/fetch.test.ts @@ -175,8 +175,8 @@ describe('fetch styles manually', () => { }); it('fetches styles only from the given elements', async () => { - fetchMock.getOnce('end:target5.css', target5Css); - fetchMock.getOnce('end:target6.css', target6Css); + fetchMock.getOnce('end:target5.css', requestWithCSSType(target5Css)); + fetchMock.getOnce('end:target6.css', requestWithCSSType(target6Css)); const el1 = document.getElementById('el1')!; const el2 = document.getElementById('el2')!;