Render protected circuit structure
This commit is contained in:
parent
ac21d6eb5d
commit
31589875b5
11 changed files with 254 additions and 29 deletions
|
|
@ -2,10 +2,18 @@ import assert from "node:assert/strict";
|
|||
import { describe, it } from "node:test";
|
||||
import {
|
||||
getInsertionSortOrder,
|
||||
isGridInsertionRowType,
|
||||
resolveGridInsertionIntent,
|
||||
} from "../src/frontend/utils/circuit-grid-insertion.js";
|
||||
|
||||
describe("circuit grid insertion", () => {
|
||||
it("excludes structural rows from insertion and deletion commands", () => {
|
||||
assert.equal(isGridInsertionRowType("headerComponent"), false);
|
||||
assert.equal(isGridInsertionRowType("groupComponent"), false);
|
||||
assert.equal(isGridInsertionRowType("footerComponent"), false);
|
||||
assert.equal(isGridInsertionRowType("circuitCompact"), true);
|
||||
});
|
||||
|
||||
it("inserts a circuit after circuit-level selections", () => {
|
||||
assert.deepEqual(
|
||||
resolveGridInsertionIntent(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue