mirror of
https://github.com/Dansen999/at-certification-stock.git
synced 2026-01-11 21:43:34 +00:00
Fixed tests.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SentimentCardComponent } from './sentiment-card.component';
|
||||
import {HttpClientTestingModule} from "@angular/common/http/testing";
|
||||
|
||||
describe('SentimentCardComponent', () => {
|
||||
let component: SentimentCardComponent;
|
||||
@@ -8,7 +9,11 @@ describe('SentimentCardComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ SentimentCardComponent ]
|
||||
declarations: [ SentimentCardComponent ],
|
||||
imports: [
|
||||
HttpClientTestingModule
|
||||
]
|
||||
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SentimentComponent } from './sentiment.component';
|
||||
import {MonthPipe} from "../../pipes/month.pipe";
|
||||
import {TendencyComponent} from "../tendency/tendency.component";
|
||||
import {ActivatedRoute, RouterModule} from "@angular/router";
|
||||
|
||||
describe('SentinmentComponent', () => {
|
||||
let component: SentimentComponent;
|
||||
@@ -8,7 +11,8 @@ describe('SentinmentComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ SentimentComponent ]
|
||||
declarations: [ SentimentComponent, MonthPipe, TendencyComponent ],
|
||||
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { StockCardComponent } from './stock-card.component';
|
||||
import {HttpClientTestingModule} from "@angular/common/http/testing";
|
||||
|
||||
describe('StockCardComponent', () => {
|
||||
let component: StockCardComponent;
|
||||
@@ -8,7 +9,11 @@ describe('StockCardComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ StockCardComponent ]
|
||||
declarations: [ StockCardComponent ],
|
||||
imports: [
|
||||
HttpClientTestingModule
|
||||
]
|
||||
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user