Issue a better error

This commit is contained in:
Ryan Cavanaugh 2018-06-13 10:44:22 -07:00
parent cddff912d5
commit ed0b90c978

View File

@ -5,6 +5,7 @@ describe("Public APIs", () => {
let fileContent: string;
before(() => {
fileContent = Harness.IO.readFile(builtFile)!;
if (!fileContent) throw new Error(`File ${fileName} was not present in built/local`);
fileContent = fileContent.replace(/\r\n/g, "\n");
});