Skip to content
Snippets Groups Projects
Commit 46a0a9f6 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add unit tests

parent 52e5bcb2
No related branches found
No related tags found
1 merge request!23Updates
......@@ -15,18 +15,23 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});
it("should have as title 'example'", () => {
it("should have as title 'Disaggregation'", () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('example');
expect(app.title).toEqual('Disaggregation');
});
it('should render title', () => {
it('should render select menu', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement;
expect(compiled.querySelector('.content span').textContent).toContain(
'example app is running!'
);
expect(compiled.querySelector('select')).toBeTruthy();
});
it('should render svg', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement;
expect(compiled.querySelector('svg')).toBeTruthy();
});
});
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