Dead code removal, test fixes
parent
6249ea8b0a
commit
05a744df55
|
@ -4,7 +4,7 @@ describe("fetchLabFeatures", () => {
|
|||
Object.defineProperty(window.location, "reload", { value: jest.fn() });
|
||||
it("basically just initializes stuff", () => {
|
||||
const val = fetchLabFeatures(jest.fn());
|
||||
expect(val.length).toBe(7);
|
||||
expect(val.length).toBe(8);
|
||||
expect(val[0].value).toBeFalsy();
|
||||
const { callback } = val[0];
|
||||
if (callback) {
|
||||
|
|
|
@ -160,5 +160,5 @@ export class API {
|
|||
get alertPath() { return `${this.baseUrl}/api/alerts/`; }
|
||||
/** /api/global_bulletins/:id */
|
||||
get globalBulletinPath() { return `${this.baseUrl}/api/global_bulletins/`; }
|
||||
get syncPatch() { return `${this.baseUrl}/api/device/sync/`; }
|
||||
// get syncPath() { return `${this.baseUrl}/api/device/sync/`; }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue