Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-Fyle committed Apr 30, 2024
1 parent 978c828 commit 81c065b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 14 additions & 2 deletions src/app/core/services/platform/v1/approver/file.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import { TestBed } from '@angular/core/testing';

import { ApproverFileService } from './file.service';
import { ApproverPlatformApiService } from '../../../approver-platform-api.service';

describe('ApproverFileService', () => {
let service: ApproverFileService;
let approverPlatformApiService: jasmine.SpyObj<ApproverPlatformApiService>;

beforeEach(() => {
TestBed.configureTestingModule({});
const approverPlatformApiServiceSpy = jasmine.createSpyObj('ApproverPlatformApiService', ['get', 'post']);
TestBed.configureTestingModule({
providers: [
{
provide: ApproverPlatformApiService,
useValue: approverPlatformApiServiceSpy,
},
],
});
service = TestBed.inject(ApproverFileService);
approverPlatformApiService = TestBed.inject(
ApproverPlatformApiService
) as jasmine.SpyObj<ApproverPlatformApiService>;
});

it('should be created', () => {
Expand Down
16 changes: 14 additions & 2 deletions src/app/core/services/platform/v1/spender/file.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import { TestBed } from '@angular/core/testing';

import { SpenderFileService } from './file.service';
import { SpenderPlatformV1ApiService } from '../../../spender-platform-v1-api.service';

describe('SpenderFileService', () => {
let service: SpenderFileService;
let spenderPlatformV1ApiService: jasmine.SpyObj<SpenderPlatformV1ApiService>;

beforeEach(() => {
TestBed.configureTestingModule({});
const spenderPlatformV1ApiServiceSpy = jasmine.createSpyObj('SpenderPlatformV1ApiService', ['get', 'post']);
TestBed.configureTestingModule({
providers: [
{
provide: SpenderPlatformV1ApiService,
useValue: spenderPlatformV1ApiServiceSpy,
},
],
});
service = TestBed.inject(SpenderFileService);
spenderPlatformV1ApiService = TestBed.inject(
SpenderPlatformV1ApiService
) as jasmine.SpyObj<SpenderPlatformV1ApiService>;
});

it('should be created', () => {
Expand Down

0 comments on commit 81c065b

Please sign in to comment.