Skip to content

Commit

Permalink
refactor: use assert instead of assertive
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Richter committed May 10, 2020
1 parent f4373ab commit 7f3cbde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
15 changes: 0 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
},
"dependencies": {},
"devDependencies": {
"assertive": "^5.0.1",
"eslint": "^7.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-mocha": "^6.3.0",
Expand Down
6 changes: 3 additions & 3 deletions test/lint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/* eslint-env mocha */

const assert = require('assertive');
const assert = require('assert');
const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
Expand All @@ -29,7 +29,7 @@ async function validate(filename, content) {
}

try {
assert.equal(expected.errorCount, first.errorCount);
assert.strictEqual(first.errorCount, expected.errorCount);
} catch (e) {
// eslint-disable-next-line no-console
console.log(first.messages, expected.messages);
Expand All @@ -47,7 +47,7 @@ async function validate(filename, content) {
expectedSource = content;
}

assert.equal(expectedSource, first.output || content);
assert.strictEqual(first.output || content, expectedSource);
}

describe(`Linting using ESLint`, () => {
Expand Down

0 comments on commit 7f3cbde

Please sign in to comment.