Skip to content
Snippets Groups Projects
Commit 85b36934 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

Add sample unit test

parent 9313f296
No related branches found
No related tags found
No related merge requests found
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import {async, ComponentFixture, TestBed} from "@angular/core/testing";
import { MainToolbarDesktopPresentational } from "./main-toolbar-desktop.presentational";
import {MainToolbarDesktopPresentational} from "./main-toolbar-desktop.presentational";
describe("MainToolbarComponent", () => {
let component: MainToolbarDesktopPresentational;
......@@ -8,18 +8,14 @@ describe("MainToolbarComponent", () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MainToolbarDesktopPresentational ]
declarations: [MainToolbarDesktopPresentational],
})
.compileComponents();
}));
beforeEach(() => {
.compileComponents();
fixture = TestBed.createComponent(MainToolbarDesktopPresentational);
component = fixture.componentInstance;
fixture.detectChanges();
});
}));
it("should create", () => {
expect(component).toBeTruthy();
expect(() => fixture.detectChanges()).not.toThrow();
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment