Files
z-elements/apps/showcase/src/app/app.element.spec.ts
2024-08-12 17:44:58 +02:00

20 lines
392 B
TypeScript

import { AppElement } from './app.element';
describe('AppElement', () => {
let app: AppElement;
beforeEach(() => {
app = new AppElement();
});
it('should create successfully', () => {
expect(app).toBeTruthy();
});
it('should have a greeting', () => {
app.connectedCallback();
expect(app.querySelector('h1').innerHTML).toContain('Welcome showcase');
});
});