summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.spec.ts
blob: 0d521a889482931c8a631b36d22e5a26bbf41747 (plain)
1
2
3
4
5
6
7
8
9
10
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');
  });
});