mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-13 13:33:09 +00:00
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { TestBed } from '@angular/core/testing';
|
|
import { AppComponent } from './app.component';
|
|
import { MessagesComponent } from './messages/messages.component';
|
|
|
|
describe('AppComponent', () => {
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
declarations: [
|
|
AppComponent,
|
|
MessagesComponent
|
|
],
|
|
}).compileComponents();
|
|
});
|
|
|
|
xit('should create the app', () => {
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
const app = fixture.componentInstance;
|
|
expect(app).toBeTruthy();
|
|
});
|
|
|
|
xit(`should have as title 'relay-angular-chat'`, () => {
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
const app = fixture.componentInstance;
|
|
expect(app.title).toEqual('relay-angular-chat');
|
|
});
|
|
|
|
xit('should render title', () => {
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
fixture.detectChanges();
|
|
const compiled = fixture.nativeElement as HTMLElement;
|
|
expect(compiled.querySelector('.h1')?.textContent).toContain('relay-angular-chat');
|
|
});
|
|
});
|