Stack parsing test was failing due to longjohn

This commit is contained in:
Tom Coleman
2016-05-06 10:00:57 -07:00
parent 18df026cad
commit b5acef6def

View File

@@ -12,8 +12,11 @@ selftest.define("parse-stack - parse stack traces without fibers", () => {
const firstFilePath = files.convertToStandardPath(parsedStack[0].file);
selftest.expectEqual(_.last(firstFilePath.split("/")), "parse-stack-test.js");
const lastFilePath = files.convertToStandardPath(_.last(parsedStack).file);
selftest.expectEqual(_.last(lastFilePath.split("/")), "main.js");
// This is no longer true as longjohn adds a bunch of pre-app frames to the
// call stack. However it doesn't seem we actually rely on this behavior
// anywhere
// const lastFilePath = files.convertToStandardPath(_.last(parsedStack).file);
// selftest.expectEqual(_.last(lastFilePath.split("/")), "main.js");
markBottom(() => {
const markedErr = new Error();