mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 20:40:39 +00:00
Type resizeUtils tests
This commit is contained in:
parent
30f668b871
commit
3222eca8aa
1 changed files with 5 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { getPositionDiff, generateGraph } from "./resizeUtils";
|
||||
|
||||
describe("resizeUtils", () => {
|
||||
it("can enter shade mode", () => {
|
||||
const graph = {
|
||||
|
|
@ -225,10 +226,10 @@ describe("resizeUtils", () => {
|
|||
d: { below: "c" }
|
||||
};
|
||||
const sizeDiff = {
|
||||
a: { height: -75 },
|
||||
b: {},
|
||||
c: { height: -75 },
|
||||
d: {}
|
||||
a: { height: -75, width: 0 },
|
||||
b: { height: 0, width: 0 },
|
||||
c: { height: -75, width: 0 },
|
||||
d: { height: 0, width: 0 }
|
||||
};
|
||||
const actual = getPositionDiff(graph, sizeDiff);
|
||||
const expected = {
|
||||
Loading…
Add table
Add a link
Reference in a new issue