mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
feat: collapse\expand steps in pipeline
This commit is contained in:
@@ -79,6 +79,18 @@ describe("pipeline: parseChain (localStorage/импорт)", () => {
|
||||
expect(chain[0].params).toMatchObject({ x: 5, y: 0 });
|
||||
});
|
||||
|
||||
it("parseChain сохраняет collapsed, по умолчанию шаг развёрнут", () => {
|
||||
const chain = parseChain({
|
||||
version: CHAIN_VERSION,
|
||||
steps: [
|
||||
{ id: "crop", params: {}, collapsed: true },
|
||||
{ id: "resize", params: {} },
|
||||
],
|
||||
})!;
|
||||
expect(chain[0].collapsed).toBe(true);
|
||||
expect(chain[1].collapsed).toBeUndefined();
|
||||
});
|
||||
|
||||
it.each([
|
||||
["нет версии", { steps: [{ id: "crop" }] }],
|
||||
["другая версия", { version: 99, steps: [{ id: "crop" }] }],
|
||||
|
||||
Reference in New Issue
Block a user