aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app/app.component.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/app/app.component.spec.ts')
-rw-r--r--ui/src/app/app.component.spec.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/ui/src/app/app.component.spec.ts b/ui/src/app/app.component.spec.ts
new file mode 100644
index 0000000..20b0ed6
--- /dev/null
+++ b/ui/src/app/app.component.spec.ts
@@ -0,0 +1,31 @@
+import { TestBed } from '@angular/core/testing';
+import { AppComponent } from './app.component';
+
+describe('AppComponent', () => {
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [
+ AppComponent
+ ],
+ }).compileComponents();
+ });
+
+ it('should create the app', () => {
+ const fixture = TestBed.createComponent(AppComponent);
+ const app = fixture.componentInstance;
+ expect(app).toBeTruthy();
+ });
+
+ it(`should have as title 'metube'`, () => {
+ const fixture = TestBed.createComponent(AppComponent);
+ const app = fixture.componentInstance;
+ expect(app.title).toEqual('metube');
+ });
+
+ it('should render title', () => {
+ const fixture = TestBed.createComponent(AppComponent);
+ fixture.detectChanges();
+ const compiled = fixture.nativeElement;
+ expect(compiled.querySelector('.content span').textContent).toContain('metube app is running!');
+ });
+});
bgstack15