Skip to content

Commit

Permalink
Chore: rm devdep leche (fixes #480)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 23, 2021
1 parent 651e204 commit 2a1b842
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -48,7 +48,6 @@
"esprima": "latest",
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
"json-diff": "^0.5.4",
"leche": "^2.3.0",
"mocha": "^8.3.1",
"npm-run-all": "^4.1.5",
"nyc": "^14.1.1",
Expand Down
5 changes: 2 additions & 3 deletions tests/lib/ecma-features.js
Expand Up @@ -8,7 +8,6 @@
//------------------------------------------------------------------------------

import assert from "assert";
import leche from "leche";
import path from "path";
import * as espree from "../../espree.js";
import shelljs from "shelljs";
Expand Down Expand Up @@ -57,8 +56,7 @@ describe("ecmaFeatures", () => {
ecmaFeatures: {}
};
});

leche.withData(testFiles, filename => {
testFiles.forEach(filename => {

// Uncomment and fill in filename to focus on a single file
// var filename = "jsx/invalid-matching-placeholder-in-closing-tag";
Expand All @@ -83,5 +81,6 @@ describe("ecmaFeatures", () => {
});

});

});
});
9 changes: 2 additions & 7 deletions tests/lib/ecma-version.js
Expand Up @@ -8,7 +8,6 @@
//------------------------------------------------------------------------------

import fs from "fs";
import leche from "leche";
import path from "path";
import shelljs from "shelljs";
import tester from "./tester.js";
Expand Down Expand Up @@ -59,8 +58,7 @@ describe("ecmaVersion", () => {
});

describe("Scripts", () => {

leche.withData(scriptOnlyTestFiles, filename => {
scriptOnlyTestFiles.forEach(filename => {
const version = filename.slice(1, filename.indexOf("/", 1));

// Uncomment and fill in filename to focus on a single file
Expand All @@ -76,15 +74,13 @@ describe("ecmaVersion", () => {

tester.assertMatches(code, config, expected.default);
});

});

});


describe("Modules", () => {

leche.withData(moduleTestFiles, filename => {
moduleTestFiles.forEach(filename => {
const version = filename.slice(1, filename.indexOf("/", 1));
const code = shelljs.cat(`${FIXTURES_DIR}/${filename}.src.js`);

Expand Down Expand Up @@ -115,7 +111,6 @@ describe("ecmaVersion", () => {

tester.assertMatches(code, config, expected);
});

});
});

Expand Down
6 changes: 1 addition & 5 deletions tests/lib/libraries.js
Expand Up @@ -7,7 +7,6 @@
// Requirements
//------------------------------------------------------------------------------

import leche from "leche";
import path from "path";
import shelljs from "shelljs";
import tester from "./tester.js";
Expand All @@ -30,8 +29,7 @@ const testFiles = shelljs.find(`${__dirname}/../fixtures/libraries`).filter(file
//------------------------------------------------------------------------------

describe("Libraries", () => {

leche.withData(testFiles, filename => {
testFiles.forEach(filename => {

// var filename = "angular-1.2.5.js";

Expand All @@ -48,6 +46,4 @@ describe("Libraries", () => {
assert.strictEqual(result, output);
});
});


});

0 comments on commit 2a1b842

Please sign in to comment.