From 019772be374e768b1eea026d217c016113cf5600 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Thu, 18 May 2023 10:35:47 -0300 Subject: [PATCH] test: dont use data-key --- test/basic.test.ts | 13 ++++--------- test/use-stylesheet.test.ts | 8 ++++---- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/test/basic.test.ts b/test/basic.test.ts index 492e8e4..d6fd753 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -22,27 +22,22 @@ describe('basic', async () => { test('has prefetch link', async () => { const body = await $fetch('/') - expect(body).toContain('') + expect(body).toContain(' { const body = await $fetch('/') - expect(body).toContain('') + expect(body).toContain(' { const body = await $fetch('/') - expect(body).toContain('') + expect(body).toContain(' { const body = await $fetch('/') - expect(body).not.toContain('') - }) - - test('does not have static stylesheet link', async () => { - const body = await $fetch('/') - expect(body).not.toContain('') + expect(body).not.toContain(' { diff --git a/test/use-stylesheet.test.ts b/test/use-stylesheet.test.ts index cfddf14..d32ecfa 100644 --- a/test/use-stylesheet.test.ts +++ b/test/use-stylesheet.test.ts @@ -24,22 +24,22 @@ describe('use stylesheet', async () => { test('has prefetch link', async () => { const body = await $fetch('/') - expect(body).toContain('') + expect(body).toContain(' { const body = await $fetch('/') - expect(body).toContain('') + expect(body).toContain(' { const body = await $fetch('/') - expect(body).toContain('') + expect(body).toContain(' { const body = await $fetch('/') - expect(body).toContain('') + expect(body).toContain(' {