Dead code removal, test fixes

pull/1348/head
Rick Carlino 2019-07-29 10:46:43 -05:00
parent 6249ea8b0a
commit 05a744df55
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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/`; }
}