mirror of
https://github.com/minio/minio.git
synced 2025-11-22 18:47:43 -05:00
revert browser newux changes (#5714)
This commit is contained in:
@@ -29,11 +29,7 @@ describe("alert reducer", () => {
|
||||
expect(
|
||||
reducer(undefined, {
|
||||
type: actionsAlert.SET,
|
||||
alert: {
|
||||
id: 1,
|
||||
type: "danger",
|
||||
message: "Test message"
|
||||
}
|
||||
alert: { id: 1, type: "danger", message: "Test message" }
|
||||
})
|
||||
).toEqual({
|
||||
show: true,
|
||||
@@ -46,11 +42,7 @@ describe("alert reducer", () => {
|
||||
it("should clear alert if id not passed", () => {
|
||||
expect(
|
||||
reducer(
|
||||
{
|
||||
show: true,
|
||||
type: "danger",
|
||||
message: "Test message"
|
||||
},
|
||||
{ show: true, type: "danger", message: "Test message" },
|
||||
{
|
||||
type: actionsAlert.CLEAR
|
||||
}
|
||||
@@ -64,17 +56,10 @@ describe("alert reducer", () => {
|
||||
it("should clear alert if id is matching", () => {
|
||||
expect(
|
||||
reducer(
|
||||
{
|
||||
show: true,
|
||||
id: 1,
|
||||
type: "danger",
|
||||
message: "Test message"
|
||||
},
|
||||
{ show: true, id: 1, type: "danger", message: "Test message" },
|
||||
{
|
||||
type: actionsAlert.CLEAR,
|
||||
alert: {
|
||||
id: 1
|
||||
}
|
||||
alert: { id: 1 }
|
||||
}
|
||||
)
|
||||
).toEqual({
|
||||
@@ -86,17 +71,10 @@ describe("alert reducer", () => {
|
||||
it("should not clear alert if id is not matching", () => {
|
||||
expect(
|
||||
reducer(
|
||||
{
|
||||
show: true,
|
||||
id: 1,
|
||||
type: "danger",
|
||||
message: "Test message"
|
||||
},
|
||||
{ show: true, id: 1, type: "danger", message: "Test message" },
|
||||
{
|
||||
type: actionsAlert.CLEAR,
|
||||
alert: {
|
||||
id: 2
|
||||
}
|
||||
alert: { id: 2 }
|
||||
}
|
||||
)
|
||||
).toEqual({
|
||||
|
||||
Reference in New Issue
Block a user