From 07fa104b46f080c0111712b52cc62823af90e6c4 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 5 Aug 2022 12:02:20 +0100 Subject: [PATCH] test: add key matching test for keyed composables (#6372) --- test/basic.test.ts | 3 +++ .../basic/pages/keyed-composables.vue | 26 ++++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/test/basic.test.ts b/test/basic.test.ts index 104330aa00..5e98abf436 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -344,6 +344,9 @@ describe('automatically keyed composables', () => { expect(html).toContain('true') expect(html).not.toContain('false') }) + it('should match server-generated keys', async () => { + await expectNoClientErrors('/keyed-composables') + }) }) describe('dynamic paths', () => { diff --git a/test/fixtures/basic/pages/keyed-composables.vue b/test/fixtures/basic/pages/keyed-composables.vue index 2879009aef..0ed479f62a 100644 --- a/test/fixtures/basic/pages/keyed-composables.vue +++ b/test/fixtures/basic/pages/keyed-composables.vue @@ -1,17 +1,31 @@