Fix ALL_PASERS typo in run_spec (#1227)

master
Brian Ng 2017-04-13 09:08:55 -05:00 committed by Christopher Chedeau
parent 27d827aba6
commit 485028c32f
1 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ const parser = require("../src/parser");
const RUN_AST_TESTS = process.env["AST_COMPARE"];
const VERIFY_ALL_PARSERS = process.env["VERIFY_ALL_PARSERS"] || false;
const ALL_PASERS = process.env["ALL_PASERS"]
? JSON.parse(process.env["ALL_PASERS"])
const ALL_PARSERS = process.env["ALL_PARSERS"]
? JSON.parse(process.env["ALL_PARSERS"])
: ["flow", "babylon", "typescript"];
// Ignoring empty statements that are added into the output removes a
@ -143,7 +143,7 @@ function mergeDefaultOptions(parserConfig) {
function getParsersToVerify(parser, additionalParsers) {
if (VERIFY_ALL_PARSERS) {
return ALL_PASERS.splice(ALL_PASERS.indexOf(parent), 1);
return ALL_PARSERS.splice(ALL_PARSERS.indexOf(parent), 1);
}
return additionalParsers;
}