aboutsummaryrefslogtreecommitdiffgithub
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2020-05-22 22:03:29 -0700
committerAustin Adams <git@austinjadams.com>2020-05-22 22:04:42 -0700
commit4c1cc3b3e21032b75b2e4858aca8d32772f91e8d (patch)
treed7a24307c8ec92b57ed212c83e4cc8b67526aaab
parent46a3204a78f7642c8df878d21ac39c8ffe53c7e1 (diff)
downloadnovice-4c1cc3b3e21032b75b2e4858aca8d32772f91e8d.tar.gz
novice-4c1cc3b3e21032b75b2e4858aca8d32772f91e8d.tar.xz
Fix tests broken by bf43f4864c
-rw-r--r--packages/novice-cli/novice-cli/cli.test.ts6
-rw-r--r--packages/novice/novice/assembler/parsers/parser.test.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/novice-cli/novice-cli/cli.test.ts b/packages/novice-cli/novice-cli/cli.test.ts
index 9444e68..64815ea 100644
--- a/packages/novice-cli/novice-cli/cli.test.ts
+++ b/packages/novice-cli/novice-cli/cli.test.ts
@@ -80,7 +80,7 @@ describe('cli', () => {
mockInFp = {
// @ts-ignore
on(event: string, handler: () => void) {
- if (event === 'readable') {
+ if (event === 'open') {
handler();
}
}
@@ -332,7 +332,7 @@ describe('cli', () => {
iam: 'fp',
// @ts-ignore
on(ev, cb) {
- if (ev === 'readable') cb();
+ if (ev === 'open') cb();
}
};
});
@@ -381,7 +381,7 @@ describe('cli', () => {
iam: 'stdin',
// @ts-ignore
on(ev, cb) {
- if (ev === 'readable') cb();
+ if (ev === 'open') cb();
}
};
// @ts-ignore
diff --git a/packages/novice/novice/assembler/parsers/parser.test.ts b/packages/novice/novice/assembler/parsers/parser.test.ts
index ad957bc..bfeabdf 100644
--- a/packages/novice/novice/assembler/parsers/parser.test.ts
+++ b/packages/novice/novice/assembler/parsers/parser.test.ts
@@ -32,7 +32,7 @@ describe('abstract parser', () => {
protected initCtx(): Context { return {}; }
protected parseLine(ctx: Context, parseTree: ParseTree<NT, T>, line: Line<T>): void {}
// @ts-ignore
- protected finish(ctx: Context): Assembly { return null; }
+ protected finishParse(ctx: Context): Assembly { return null; }
}
beforeEach(() => {