DEV: Throw an error instead of a string.

This commit is contained in:
Guo Xiang Tan
2020-08-28 11:39:17 +08:00
parent e7648e2772
commit cff57c1883

View File

@@ -136,8 +136,9 @@ QUnit.testStart(function(ctx) {
const error =
"Unhandled request in test environment: " + path + " (" + verb + ")";
window.console.error(error);
throw error;
throw new Error(error);
};
server.checkPassthrough = request =>