Skip to content

Commit

Permalink
Corrige testes iniciais de criação de componentes
Browse files Browse the repository at this point in the history
Co-authored-by: VitoriaAquere <[email protected]>
  • Loading branch information
geraldovictor and vicamatos committed Nov 3, 2023
1 parent afb3930 commit 70e669d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
10 changes: 8 additions & 2 deletions src/app/pages/suggest-agenda/suggest-agenda.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { HttpClientTestingModule } from '@angular/common/http/testing';
import { SuggestAgendaComponent } from './suggest-agenda.component';
import { EmailService } from 'src/app/services/email.service';
import { FormBuilder } from '@angular/forms';
import { ReactiveFormsModule } from '@angular/forms';

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

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ SuggestAgendaComponent ]
declarations: [ SuggestAgendaComponent ],
imports: [HttpClientTestingModule,
ReactiveFormsModule],
providers: [{ provide: EmailService, FormBuilder}]
})
.compileComponents();

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/video-viewer/video-viewer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { RouterTestingModule } from "@angular/router/testing";
import { VideoViewerComponent } from './video-viewer.component';
import { VideoService } from './video.service';
import { SafePipe } from 'src/app/pipes/safe.pipe';
import { VideoService } from 'src/app/services/video.service';

describe('VideoViewerComponent', () => {
let component: VideoViewerComponent;
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/video/video.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { VideoComponent } from './video.component';
import { VideoService } from './video.service';
import { VideoService } from 'src/app/services/video.service';

describe('VideoComponent', () => {
let component: VideoComponent;
Expand Down
7 changes: 5 additions & 2 deletions src/app/services/email.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { TestBed } from '@angular/core/testing';

import { HttpClientTestingModule } from '@angular/common/http/testing';
import { EmailService } from './email.service';

describe('EmailService', () => {
let service: EmailService;

beforeEach(() => {
TestBed.configureTestingModule({});
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [EmailService]
});
service = TestBed.inject(EmailService);
});

Expand Down
4 changes: 2 additions & 2 deletions src/app/services/video.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { VideoService } from './video.service';
import { EDUPLAY_API_URL, UNB_ID } from 'src/app/app.constant';
import { EDUPLAY_CLIENT_KEY } from 'src/app/secret/eduplay.credentials';
import { EDUPLAY_CLIENT_KEY } from '../environment/environment';
import { VideoService } from './video.service';

describe('VideoService', () => {
let service: VideoService;
Expand Down

0 comments on commit 70e669d

Please sign in to comment.