First pass at converting identifiers/words from en-au -> en-us
This commit is contained in:
@@ -3,7 +3,7 @@ var path = require("path");
|
||||
var fs = require("fs");
|
||||
var _ = require("lodash");
|
||||
|
||||
var humanise = function (val, noext) {
|
||||
var humanize = function (val, noext) {
|
||||
if (noext) val = path.basename(val, path.extname(val));
|
||||
return val.replace(/-/g, " ");
|
||||
};
|
||||
@@ -37,7 +37,7 @@ exports.get = function (entryName, entryLoc) {
|
||||
var suite = {
|
||||
options: {},
|
||||
tests: [],
|
||||
title: humanise(suiteName),
|
||||
title: humanize(suiteName),
|
||||
filename: entryLoc + "/" + suiteName
|
||||
};
|
||||
suites.push(suite);
|
||||
@@ -83,7 +83,7 @@ exports.get = function (entryName, entryLoc) {
|
||||
if (taskOptsLoc) _.merge(taskOpts, require(taskOptsLoc));
|
||||
|
||||
var test = {
|
||||
title: humanise(taskName, true),
|
||||
title: humanize(taskName, true),
|
||||
disabled: taskName[0] === ".",
|
||||
options: taskOpts,
|
||||
exec: {
|
||||
|
||||
@@ -20,7 +20,7 @@ var exec = function (loc) {
|
||||
try {
|
||||
var file = fs.readFileSync(loc, "utf8");
|
||||
|
||||
// this normalises syntax and early runtime reference errors since they're
|
||||
// this normalizes syntax and early runtime reference errors since they're
|
||||
// both thrown as SyntaxErrors in acorn
|
||||
// SyntaxError: var null;
|
||||
// ReferenceError: 1++; (runtime)
|
||||
|
||||
@@ -37,7 +37,7 @@ require("./_transformation-helper")({
|
||||
"Syntax/UseStrictEscapeSequence",
|
||||
"Syntax/UseStrictLineContinuation",
|
||||
|
||||
// experimental es7 - the spec hasn't been finalised yet
|
||||
// experimental es7 - the spec hasn't been finalized yet
|
||||
// these both fail because of filter between blocks
|
||||
"ArrayComprehension/Simple",
|
||||
"GeneratorComprehension/Simple",
|
||||
|
||||
Reference in New Issue
Block a user