Skip to content

Commit

Permalink
feat: create single-tweet component
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed Apr 23, 2017
1 parent 72552b1 commit a72a9f0
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { FaceComponent } from './face/face.component';
import { TweetComponent } from './tweet/tweet.component';
import { TimelineComponent } from './timeline/timeline.component';
import { TwitterService } from './twitter.service';
import { SingleTweetComponent } from './single-tweet/single-tweet.component';
import { SvgComponent } from './svg/svg.component';

const routes: Routes = [
Expand All @@ -33,9 +34,10 @@ const routes: Routes = [
declarations: [
AppComponent,
FaceComponent,
TweetComponent,
SingleTweetComponent,
SvgComponent,
TimelineComponent,
SvgComponent
TweetComponent,
],
imports: [
BrowserModule,
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions src/app/single-tweet/single-tweet.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
single-tweet works!
</p>
25 changes: 25 additions & 0 deletions src/app/single-tweet/single-tweet.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SingleTweetComponent } from './single-tweet.component';

describe('SingleTweetComponent', () => {
let component: SingleTweetComponent;
let fixture: ComponentFixture<SingleTweetComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SingleTweetComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(SingleTweetComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/single-tweet/single-tweet.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-single-tweet',
templateUrl: './single-tweet.component.html',
styleUrls: ['./single-tweet.component.css']
})
export class SingleTweetComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

0 comments on commit a72a9f0

Please sign in to comment.