diff --git a/src/components/App/App.test.js b/src/components/App/App.test.js index 86b9731..bbb378e 100644 --- a/src/components/App/App.test.js +++ b/src/components/App/App.test.js @@ -30,14 +30,14 @@ describe("App", () => { beforeAll(() => { // Stablize Table Pagination control ids expect.addSnapshotSerializer({ - test: function(val) { - return val && typeof val === "string" && val.indexOf("mui-") >= 0; + test: function (val) { + return val && typeof val === "string" && val.indexOf("mui-") >= 0; }, - print: function(val) { - let str = val; - str = str.replace(/mui-[0-9]*/g, "mui-00000"); - - return `"${str}"`; + print: function (val) { + let str = val; + str = str.replace(/mui-[0-9]*/g, "mui-00000"); + + return `"${str}"`; } }); }); @@ -127,10 +127,10 @@ describe("App", () => { it("Route /carupdate-status authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/carupdate-status/1", "h6", ""); + await check("/carupdate-status/1", "h6", "Package Package 1.0"); }); - it("Route /vehicles authenticated", async () => { + it("Route /vehicles authenticated", async () => { setToken(TEST_AUTH_OBJECT); await check("/vehicles", "h6", "Vehicles"); }); @@ -156,7 +156,7 @@ describe("App", () => { it("Route /carupdate-deploy authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/carupdate-deploy/1", "h6", "Deploy "); + await check("/carupdate-deploy/1", "h6", "Deploy Package 1.0"); }); it("Route /dashboard authenticated", async () => { diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 48a55c1..36241b1 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -308,7 +308,7 @@ exports[`App Route /carupdate-deploy authenticated 1`] = `
- Deploy + Deploy Package 1.0