Skip to content

Commit

Permalink
chore: bump devDeps and adapt tests to tap 15
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Apr 9, 2021
1 parent 8fa0ffc commit 45a57f6
Show file tree
Hide file tree
Showing 7 changed files with 2,529 additions and 3,145 deletions.
5,582 changes: 2,496 additions & 3,086 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@
"url": "https://github.com/mnater/Hyphenopoly"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"all-contributors-cli": "^6.20.0",
"assemblyscript": "^0.18.12",
"assemblyscript": "^0.18.23",
"characterset": "^1.3.0",
"eslint": "^7.21.0",
"eslint": "^7.23.0",
"eslint-plugin-security": "^1.4.0",
"remark-cli": "^9.0.0",
"remark-lint-no-consecutive-blank-lines": "^3.0.0",
"remark-preset-lint-recommended": "^5.0.0",
"tap": "^14.11.0",
"tap": "^15.0.2",
"terser": "^5.6.0",
"yaml": "^1.10.0"
"yaml": "^1.10.2"
},
"remarkConfig": {
"plugins": [
Expand All @@ -68,7 +68,7 @@
"createWasmForLang": "sh ./tools/createWasmForLang.sh en-us",
"createAllWasm": "sh ./tools/createAllWasm.sh",
"pretest": "npm run lint",
"test": "tap test/*.js --no-esm",
"test": "tap test/*.js",
"testsuite": "open http://127.0.0.1/~mnater/Hyphenopoly/testsuite/ && open http://127.0.0.1/~mnater/Hyphenopoly/min/testsuite/",
"lint": "eslint Hyphenopoly_Loader.js Hyphenopoly.js hyphenopoly.module.js test/*.js src/*.ts && remark -q *.md && remark -q */*.md",
"prepare": "sh ./tools/minify.sh",
Expand Down
6 changes: 2 additions & 4 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
const t = require("tap");

let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("run config with one language", async function (t) {
Expand Down
54 changes: 18 additions & 36 deletions test/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ const t = require("tap");

t.test("set options: compound", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("compound: all", async function (t) {
Expand Down Expand Up @@ -68,15 +66,13 @@ t.test("set options: compound", function (t) {

t.test("set options: exceptions", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("exceptions: global (only)", async function (t) {
Expand Down Expand Up @@ -114,15 +110,13 @@ t.test("set options: exceptions", function (t) {

t.test("set options: hyphen", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("hyphen: •", async function (t) {
Expand All @@ -146,15 +140,13 @@ t.test("set options: hyphen", function (t) {

t.test("set options: left-/rightmin (patterns: 2/2)", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("left-/rightmin: 4, 5", async function (t) {
Expand Down Expand Up @@ -187,15 +179,13 @@ t.test("set options: left-/rightmin (patterns: 2/2)", function (t) {

t.test("set options: left-/rightmin (patterns: 2/3)", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("left-/rightmin: 2, 2", async function (t) {
Expand All @@ -222,15 +212,13 @@ t.test("set options: left-/rightmin (patterns: 2/3)", function (t) {

t.test("set options: minWordLength", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("minWordLength: 7", async function (t) {
Expand All @@ -247,15 +235,13 @@ t.test("set options: minWordLength", function (t) {

t.test("set options: mixedCase", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("mixedCase: false", async function (t) {
Expand All @@ -272,15 +258,13 @@ t.test("set options: mixedCase", function (t) {

t.test("set options: normalize", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("normalize: true", async function (t) {
Expand All @@ -297,15 +281,13 @@ t.test("set options: normalize", function (t) {

t.test("set options: orphanControl", function (t) {
let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("orphanControl: 1 (default)", async function (t) {
Expand Down
6 changes: 2 additions & 4 deletions test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
const t = require("tap");

let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("path to patternfile not resolvable", async function (t) {
Expand Down
6 changes: 2 additions & 4 deletions test/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
const t = require("tap");

let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("set Event", async function (t) {
Expand Down
6 changes: 2 additions & 4 deletions test/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
const t = require("tap");

let H9Y = null;
t.beforeEach(function setup(done) {
t.beforeEach(function setup() {
H9Y = require("../hyphenopoly.module");
done();
});

t.afterEach(function tearDown(done) {
t.afterEach(function tearDown() {
H9Y = null;
delete require.cache[require.resolve("../hyphenopoly.module")];
done();
});

t.test("use https loader", async function (t) {
Expand Down

0 comments on commit 45a57f6

Please sign in to comment.