Remove try/catch blocks

There were only here so that we could check in the tests before the code actually worked
This commit is contained in:
Jordan Eldredge 2019-07-19 21:49:16 -07:00
parent ea3a7b4736
commit 3debd3704e

View file

@ -69,12 +69,7 @@ describe("can use basic operators", () => {
versions.forEach(version => {
test(`with basic test bytecode compiled by ${version}`, async () => {
try {
await runFile(`./reference/maki_compiler/${version}/basicTests.maki`);
} catch (e) {
// Uncomment this next line to find the next bug to work on.
console.error(e);
}
await runFile(`./reference/maki_compiler/${version}/basicTests.maki`);
expect(mockMessageBox.mock.calls).toEqual(
[
"2 + 2 = 4",
@ -140,14 +135,9 @@ describe("can use basic operators", () => {
});
test(`with simple functions test bytecode compiled by ${version}`, async () => {
try {
await runFile(
`./reference/maki_compiler/${version}/simpleFunctions.maki`
);
} catch (e) {
// Uncomment this next line to find the next bug to work on.
console.error(e);
}
await runFile(
`./reference/maki_compiler/${version}/simpleFunctions.maki`
);
expect(mockMessageBox.mock.calls).toEqual(
[
"simple custom function",