mirror of
https://github.com/captbaritone/webamp
synced 2024-11-22 07:40:51 +00:00
Fix tests using wrong window key names in expected results (#1248)
This commit is contained in:
parent
25b5579157
commit
b2e67dab3d
@ -249,9 +249,9 @@ describe("generateGraph", () => {
|
||||
{ key: "playlist", x: 0, y: 200, width: 100, height: 100 },
|
||||
]);
|
||||
expect(actual).toEqual({
|
||||
a: {},
|
||||
b: { below: "a" },
|
||||
c: { below: "b" },
|
||||
main: {},
|
||||
equalizer: { below: "main" },
|
||||
playlist: { below: "equalizer" },
|
||||
});
|
||||
});
|
||||
it("of disconnected windows", () => {
|
||||
@ -260,8 +260,8 @@ describe("generateGraph", () => {
|
||||
{ key: "equalizer", x: 0, y: 110, width: 100, height: 100 },
|
||||
]);
|
||||
expect(actual).toEqual({
|
||||
a: {},
|
||||
b: {},
|
||||
main: {},
|
||||
equalizer: {},
|
||||
});
|
||||
});
|
||||
it("of windows that touch in y, but the lower one is to the right", () => {
|
||||
@ -270,8 +270,8 @@ describe("generateGraph", () => {
|
||||
{ key: "equalizer", x: 110, y: 100, width: 100, height: 100 },
|
||||
]);
|
||||
expect(actual).toEqual({
|
||||
a: {},
|
||||
b: {},
|
||||
main: {},
|
||||
equalizer: {},
|
||||
});
|
||||
});
|
||||
it("of windows that touch in y, but the lower one is to the left", () => {
|
||||
@ -280,8 +280,8 @@ describe("generateGraph", () => {
|
||||
{ key: "equalizer", x: 0, y: 100, width: 100, height: 100 },
|
||||
]);
|
||||
expect(actual).toEqual({
|
||||
a: {},
|
||||
b: {},
|
||||
main: {},
|
||||
equalizer: {},
|
||||
});
|
||||
});
|
||||
it("of windows that touch in x, but the right one is below", () => {
|
||||
@ -290,8 +290,8 @@ describe("generateGraph", () => {
|
||||
{ key: "equalizer", x: 100, y: 110, width: 100, height: 100 },
|
||||
]);
|
||||
expect(actual).toEqual({
|
||||
a: {},
|
||||
b: {},
|
||||
main: {},
|
||||
equalizer: {},
|
||||
});
|
||||
});
|
||||
it("of windows that touch in x, but the right one is above", () => {
|
||||
@ -300,8 +300,8 @@ describe("generateGraph", () => {
|
||||
{ key: "equalizer", x: 100, y: 0, width: 100, height: 100 },
|
||||
]);
|
||||
expect(actual).toEqual({
|
||||
a: {},
|
||||
b: {},
|
||||
main: {},
|
||||
equalizer: {},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user