mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
22 lines
415 B
TypeScript
22 lines
415 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 @triliumnext/client'
|
||
|
);
|
||
|
});
|
||
|
});
|