Skip to content

Commit

Permalink
Add test failure condition for process errors in runLuaCode
Browse files Browse the repository at this point in the history
  • Loading branch information
trixnz committed Mar 11, 2018
1 parent 5865a9f commit d9b8cf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export function runLuaCode(code: string): Promise<boolean> {
resolve(true);
}
});

process.on('error', err => {
reject(err);
});
});
}

Expand Down

0 comments on commit d9b8cf5

Please sign in to comment.