mirror of
https://github.com/sartography/app-template-angular-material.git
synced 2025-02-23 12:48:11 +00:00
Adds dummy API URL test
This commit is contained in:
parent
3d39c3ffb6
commit
eb52cb183b
@ -26,4 +26,15 @@ describe('ApiService', () => {
|
||||
const service: ApiService = TestBed.get(ApiService);
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should rewrite dummy API URL to access static JSON assets directory', () => {
|
||||
const service: ApiService = TestBed.get(ApiService);
|
||||
const result: string = (service as any)._dummy_api_url('https://staging.whatever.com:5000/api/whatever');
|
||||
expect(result).toEqual('/assets/json/whatever.json');
|
||||
});
|
||||
|
||||
it('should rewrite dummy API URL to access static JSON assets directory', () => {
|
||||
const service: ApiService = TestBed.get(ApiService);
|
||||
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user