Fix failing unit tests in browser (#5688)

* format js files using prettier

Used the following command to format the files
prettier --write "browser/app/js/**/*.js"

* fix failing unit tests in browser
This commit is contained in:
Kanagaraj M
2018-03-23 00:55:56 +05:30
committed by Harshavardhana
parent cb3818be27
commit c0e45f9098
95 changed files with 839 additions and 890 deletions
@@ -23,9 +23,9 @@ describe("common reducer", () => {
sidebarOpen: false,
storageInfo: {
total: 0,
free: 0,
free: 0
},
serverInfo: {},
serverInfo: {}
})
})
@@ -33,14 +33,14 @@ describe("common reducer", () => {
expect(
reducer(
{
sidebarOpen: false,
sidebarOpen: false
},
{
type: actionsCommon.TOGGLE_SIDEBAR,
},
),
type: actionsCommon.TOGGLE_SIDEBAR
}
)
).toEqual({
sidebarOpen: true,
sidebarOpen: true
})
})
@@ -48,14 +48,14 @@ describe("common reducer", () => {
expect(
reducer(
{
sidebarOpen: true,
sidebarOpen: true
},
{
type: actionsCommon.CLOSE_SIDEBAR,
},
),
type: actionsCommon.CLOSE_SIDEBAR
}
)
).toEqual({
sidebarOpen: false,
sidebarOpen: false
})
})
@@ -67,15 +67,15 @@ describe("common reducer", () => {
type: actionsCommon.SET_STORAGE_INFO,
storageInfo: {
total: 100,
free: 40,
},
},
),
free: 40
}
}
)
).toEqual({
storageInfo: {
total: 100,
free: 40,
},
free: 40
}
})
})
@@ -88,15 +88,15 @@ describe("common reducer", () => {
memory: "test",
platform: "test",
runtime: "test",
info: "test",
},
}).serverInfo,
info: "test"
}
}).serverInfo
).toEqual({
version: "test",
memory: "test",
platform: "test",
runtime: "test",
info: "test",
info: "test"
})
})
})