mirror of
https://github.com/minio/minio.git
synced 2025-11-12 14:51:36 -05:00
Browser: Update UI with new components and elements (#5671)
This commit is contained in:
@@ -31,7 +31,7 @@ describe("App", () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter initialEntries={["/login"]}>
|
||||
<App />
|
||||
</MemoryRouter>
|
||||
</MemoryRouter>,
|
||||
)
|
||||
expect(wrapper.text()).toBe("Login")
|
||||
})
|
||||
@@ -40,7 +40,7 @@ describe("App", () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter initialEntries={["/"]}>
|
||||
<App />
|
||||
</MemoryRouter>
|
||||
</MemoryRouter>,
|
||||
)
|
||||
expect(wrapper.text()).toBe("Browser")
|
||||
})
|
||||
@@ -49,7 +49,7 @@ describe("App", () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter initialEntries={["/bucket"]}>
|
||||
<App />
|
||||
</MemoryRouter>
|
||||
</MemoryRouter>,
|
||||
)
|
||||
expect(wrapper.text()).toBe("Browser")
|
||||
})
|
||||
@@ -58,7 +58,7 @@ describe("App", () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter initialEntries={["/bucket/a/b/c"]}>
|
||||
<App />
|
||||
</MemoryRouter>
|
||||
</MemoryRouter>,
|
||||
)
|
||||
expect(wrapper.text()).toBe("Browser")
|
||||
})
|
||||
|
||||
@@ -21,7 +21,7 @@ describe("jsonrpc", () => {
|
||||
try {
|
||||
let jsonRPC = new JSONrpc({
|
||||
endpoint: "htt://localhost:9000",
|
||||
namespace: "Test"
|
||||
namespace: "Test",
|
||||
})
|
||||
} catch (e) {
|
||||
done()
|
||||
@@ -30,7 +30,7 @@ describe("jsonrpc", () => {
|
||||
it("should succeed with valid endpoint", () => {
|
||||
let jsonRPC = new JSONrpc({
|
||||
endpoint: "http://localhost:9000/webrpc",
|
||||
namespace: "Test"
|
||||
namespace: "Test",
|
||||
})
|
||||
expect(jsonRPC.version).toEqual("2.0")
|
||||
expect(jsonRPC.host).toEqual("localhost")
|
||||
|
||||
Reference in New Issue
Block a user