Skip to content

Commit df48d51

Browse files
author
Your Name
committed
Angular Testing Course
1 parent 5226451 commit df48d51

File tree

2 files changed

+55
-40
lines changed

2 files changed

+55
-40
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
2+
import {CoursesCardListComponent} from './courses-card-list.component';
3+
import {CoursesModule} from '../courses.module';
4+
import {COURSES} from '../../../../server/db-data';
5+
import {DebugElement} from '@angular/core';
6+
import {By} from '@angular/platform-browser';
7+
import {sortCoursesBySeqNo} from '../home/sort-course-by-seq';
8+
import {Course} from '../model/course';
9+
import {setupCourses} from '../common/setup-test-data';
10+
import {Test} from 'tslint';
11+
12+
13+
describe('CoursesCardListComponent', () => {
14+
15+
let component: CoursesCardListComponent;
16+
let fixture: ComponentFixture<CoursesCardListComponent>;
17+
18+
beforeEach(async(() => {
19+
TestBed.configureTestingModule({
20+
imports: [CoursesModule]
21+
})
22+
.compileComponents()
23+
.then(() => {
24+
25+
fixture = TestBed.createComponent(CoursesCardListComponent);
26+
component = fixture.componentInstance;
27+
28+
});
29+
}));
30+
31+
32+
it('should create the component', () => {
33+
34+
expect(component).toBeTruthy();
35+
36+
});
37+
38+
39+
it('should display the course list', () => {
40+
41+
pending();
42+
43+
});
44+
45+
46+
it('should display the first course', () => {
47+
48+
pending();
49+
50+
});
51+
52+
53+
});
54+
55+

src/app/courses/courses-card-list/courses-card-list.component.spec.ts.TODO

-40
This file was deleted.

0 commit comments

Comments
 (0)