Skip to content

Commit

Permalink
build(boilerplate): fix ssr and snapshot spec (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga authored Jul 31, 2024
1 parent a117983 commit cb4eecf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { __nameUpperCase__ } from './__noPrefixName__.js';
import './__noPrefixName__.js';

describe(`__name__`, () => {
it('renders', () => {
describe('renders', () => {
let element: __nameUpperCase__;

beforeEach(async () => {
Expand Down
16 changes: 7 additions & 9 deletions tools/generate-component/boilerplate/component.ssr.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"></__name__>`, {
modules: ['./__noPrefixName__.js'],
});
beforeEach(async () => {
root = await ssrHydratedFixture(html`<__name__ my-prop="Label"></__name__>`, {
modules: ['./__noPrefixName__.js'],
});
});

it('renders', () => {
assert.instanceOf(root, __nameUpperCase__);
});
it('renders', () => {
assert.instanceOf(root, __nameUpperCase__);
});
});

0 comments on commit cb4eecf

Please sign in to comment.