Skip to content

Commit 4ef8289

Browse files
committed
Create CarDetailComponent
1 parent 6b7f2bb commit 4ef8289

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

angular2-rest-service/src/app/car-detail/car-detail.component.css

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
car-detail works!
3+
</p>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* tslint:disable:no-unused-variable */
2+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3+
import { By } from '@angular/platform-browser';
4+
import { DebugElement } from '@angular/core';
5+
6+
import { CarDetailComponent } from './car-detail.component';
7+
8+
describe('CarDetailComponent', () => {
9+
let component: CarDetailComponent;
10+
let fixture: ComponentFixture<CarDetailComponent>;
11+
12+
beforeEach(async(() => {
13+
TestBed.configureTestingModule({
14+
declarations: [ CarDetailComponent ]
15+
})
16+
.compileComponents();
17+
}));
18+
19+
beforeEach(() => {
20+
fixture = TestBed.createComponent(CarDetailComponent);
21+
component = fixture.componentInstance;
22+
fixture.detectChanges();
23+
});
24+
25+
it('should create', () => {
26+
expect(component).toBeTruthy();
27+
});
28+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-car-detail',
5+
templateUrl: './car-detail.component.html',
6+
styleUrls: ['./car-detail.component.css']
7+
})
8+
export class CarDetailComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

0 commit comments

Comments
 (0)