diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.spec.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.spec.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.spec.ts new file mode 100644 index 000000000..0d521a889 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.spec.ts @@ -0,0 +1,11 @@ +import { ApiClient } from '~/app/shared/api/api-client'; + +class MockApiClient extends ApiClient {} + +describe('ApiClient', () => { + const service = new MockApiClient(); + + it('should get the version header value', () => { + expect(service.getVersionHeaderValue(1, 2)).toBe('application/vnd.ceph.api.v1.2+json'); + }); +}); |