Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Jul 31, 2024
1 parent 8fa6b68 commit 1d2dd5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion components/src/stores/chip.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { assertExists } from "@davidsouther/jiffies/lib/esm/assert.js";
import { FileSystem } from "@davidsouther/jiffies/lib/esm/fs.js";
import { getBuiltinChip } from "@nand2tetris/simulator/chip/builtins/index.js";
import { TST } from "@nand2tetris/simulator/languages/tst.js";
import { Action } from "@nand2tetris/simulator/types.js";
import { compare } from "../compare.js";
import { RunSpeed } from "../runbar.js";
import { BaseContext } from "./base.context.js";
Expand Down
2 changes: 1 addition & 1 deletion simulator/src/chip/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe("Chip Builder", () => {
Nand(a=in, b=myNand, out=myNand);
}`),
);
const foo = await build(chip);
const foo = await build({ parts: chip });
expect(foo).toBeErr();

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
2 changes: 1 addition & 1 deletion simulator/src/chip/builtins/all.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("All Projects", () => {
)("Builtin %s", async (chipName) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const ChipProject = ChipProjects[project]?.CHIPS;
const ChipProject = ChipProjects[project]?.CHIPS[chipName];
let hdlFile: string = ChipProject?.[`${chipName}.hdl`];
const tstFile: string = ChipProject?.[`${chipName}.tst`];
const cmpFile: string = ChipProject?.[`${chipName}.cmp`];
Expand Down
4 changes: 2 additions & 2 deletions simulator/src/projects/all.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ describe("Chip Projects", () => {
...ChipProjectsSols[project]!,
};
const hdlFile = chipProject.SOLS[chipName]?.[`${chipName}.hdl`];
const tstFile = chipProject.CHIPS?.[`${chipName}.tst`];
const cmpFile = chipProject.CHIPS?.[`${chipName}.cmp`];
const tstFile = chipProject.CHIPS[chipName]?.[`${chipName}.tst`];
const cmpFile = chipProject.CHIPS[chipName]?.[`${chipName}.cmp`];

expect(hdlFile).toBeDefined();
expect(tstFile).toBeDefined();
Expand Down

0 comments on commit 1d2dd5c

Please sign in to comment.