From cb4eecff3f79c83c96f850e9d8a9bed7250c0cfb Mon Sep 17 00:00:00 2001 From: Tommaso Menga Date: Wed, 31 Jul 2024 11:25:43 +0200 Subject: [PATCH] build(boilerplate): fix ssr and snapshot spec (#2977) --- .../boilerplate/component.snapshot.spec.ts | 2 +- .../boilerplate/component.ssr.spec.ts | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/generate-component/boilerplate/component.snapshot.spec.ts b/tools/generate-component/boilerplate/component.snapshot.spec.ts index 1011648b6e..2323f3ddca 100644 --- a/tools/generate-component/boilerplate/component.snapshot.spec.ts +++ b/tools/generate-component/boilerplate/component.snapshot.spec.ts @@ -7,7 +7,7 @@ import type { __nameUpperCase__ } from './__noPrefixName__.js'; import './__noPrefixName__.js'; describe(`__name__`, () => { - it('renders', () => { + describe('renders', () => { let element: __nameUpperCase__; beforeEach(async () => { diff --git a/tools/generate-component/boilerplate/component.ssr.spec.ts b/tools/generate-component/boilerplate/component.ssr.spec.ts index 5db08c486e..550292f15a 100644 --- a/tools/generate-component/boilerplate/component.ssr.spec.ts +++ b/tools/generate-component/boilerplate/component.ssr.spec.ts @@ -6,17 +6,15 @@ import { ssrHydratedFixture } from '../core/testing/private.js'; import { __nameUpperCase__ } from './__noPrefixName__.js'; describe(`__name__ ssr`, () => { - it('renders', () => { - let root: __nameUpperCase__; + let root: __nameUpperCase__; - beforeEach(async () => { - root = await ssrHydratedFixture(html`<__name__ my-prop="Label">`, { - modules: ['./__noPrefixName__.js'], - }); + beforeEach(async () => { + root = await ssrHydratedFixture(html`<__name__ my-prop="Label">`, { + modules: ['./__noPrefixName__.js'], }); + }); - it('renders', () => { - assert.instanceOf(root, __nameUpperCase__); - }); + it('renders', () => { + assert.instanceOf(root, __nameUpperCase__); }); });