From 8f1264388d0992fdd919a6a87881abd76c7cadae Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 12 Feb 2023 02:12:22 +0100 Subject: [PATCH] test: add fixed locale in server --- playground/pages/index.vue | 2 +- test/e2e.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/pages/index.vue b/playground/pages/index.vue index 834450bd..aa4abb05 100644 --- a/playground/pages/index.vue +++ b/playground/pages/index.vue @@ -11,6 +11,6 @@ const locale = process.server ? 'en-US' : 'en-GB'

- + diff --git a/test/e2e.spec.ts b/test/e2e.spec.ts index 3c710e00..5d8c0194 100644 --- a/test/e2e.spec.ts +++ b/test/e2e.spec.ts @@ -13,7 +13,7 @@ describe('nuxt-time', async () => { it('ssr', async () => { const html = await $fetch('/') const snap = html.match(/]*data-test-fixed[^>]*>([^<]*)<\/time>/)?.[0] - expect(snap).toMatchInlineSnapshot('""') + expect(snap).toMatchInlineSnapshot('""') }) it('injects one script', async () => {