diff --git a/frontend/src/app/component/tweets/tweets.component.spec.ts b/frontend/src/app/component/tweets/tweets.component.spec.ts index 51014eb..1fdc45c 100644 --- a/frontend/src/app/component/tweets/tweets.component.spec.ts +++ b/frontend/src/app/component/tweets/tweets.component.spec.ts @@ -5,11 +5,11 @@ import {MatSnackBar} from '@angular/material/snack-bar'; import {NGXLogger} from 'ngx-logger'; import {MatDialog} from '@angular/material/dialog'; import {HttpClientTestingModule} from '@angular/common/http/testing'; -import {FeedService} from "../../services/feed.service"; -import {Observable} from "rxjs"; -import {IFeed} from "../../interfaces/feed.interface"; -import {Tweet} from "../../interfaces/interface"; -import {By} from "@angular/platform-browser"; +import {FeedService} from '../../services/feed.service'; +import {Observable} from 'rxjs'; +import {IFeed} from '../../interfaces/feed.interface'; +import {Tweet} from '../../interfaces/interface'; +import {By} from '@angular/platform-browser'; class MockSnackBar { @@ -21,7 +21,7 @@ class MockMatDialog { class MockNGXLogger { } -//Fake Feed Service +// Fake Feed Service export class MockFeedService { getFeeds(): Observable { return new Observable(); @@ -30,7 +30,7 @@ export class MockFeedService { export function mockFillTweets() { for (let i = 0; i < 6; i++) { - const tweet: Tweet = {tweet_id: i, created_date: null, text: "Mock", url: "Mock", icon: null} + const tweet: Tweet = {tweet_id: i, created_date: null, text: 'Mock', url: 'Mock', icon: null}; this.tweets.push(tweet); } } @@ -41,7 +41,7 @@ describe('Component: Tweets', () => { beforeEach(async(() => { - //Cancelling initial load and mock http calls + // Cancelling initial load and mock http calls TweetsComponent.prototype.ngOnInit = () => { }; TweetsComponent.prototype.fillTweets = mockFillTweets; @@ -72,7 +72,7 @@ describe('Component: Tweets', () => { }); it('Do not show text if feeds are filled', () => { - const feed: IFeed = {active: true, icon: null, id: 1, keywords: null, match_all_keywords: "false", url: ""}; + const feed: IFeed = {active: true, icon: null, id: 1, keywords: null, match_all_keywords: 'false', url: ''}; component.feeds.push(feed); expect(fixture.debugElement.query(By.css('.feeds'))).toBeNull(); }); @@ -83,7 +83,7 @@ describe('Component: Tweets', () => { it('Show text if tweets are empty', () => { expect(fixture.debugElement.query(By.css('.tweets'))).toBeDefined(); - }) + }); it('Do not show text if tweets are filled', () => { component.fillTweets();