Skip to content

Commit 7e04616

Browse files
author
AlexD
authored
Merge pull request #9 from sir-alex/tech/integration-testing
Integration testing basic implementation
2 parents 9518210 + 0a90dfb commit 7e04616

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

projects/lfx-component-lib/src/lib/containers/toast/toast.component.spec.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { ComponentFixture, TestBed } from '@angular/core/testing';
2-
32
import { ToastComponent } from './toast.component';
43

5-
describe('ToastComponent', () => {
4+
describe('ToastComponent::integration testing', () => {
65
let component: ToastComponent;
76
let fixture: ComponentFixture<ToastComponent>;
87

@@ -16,7 +15,13 @@ describe('ToastComponent', () => {
1615
fixture.detectChanges();
1716
});
1817

19-
it('should create', () => {
20-
expect(component).toBeTruthy();
18+
it('component should exist', () => {
19+
expect(component).toBeDefined();
20+
});
21+
22+
it('component should have default type "notice"', () => {
23+
expect(component).toBeDefined();
24+
expect(component.type()).toBe('notice');
2125
});
26+
2227
});

0 commit comments

Comments
 (0)