Skip to content

Commit

Permalink
Upgrade dev dependencies and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikjuvonen authored Apr 21, 2022
1 parent 9eaf00a commit 631a9da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"url": "https://github.com/standard/eslint-config-semistandard/issues"
},
"devDependencies": {
"eslint": "^7.28.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint": "^8.13.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-promise": "^6.0.0",
"tap-spec": "^5.0.0",
"tape": "^5.0.0"
"tape": "^5.5.3"
},
"homepage": "https://github.com/standard/eslint-config-semistandard",
"keywords": [
Expand Down
12 changes: 6 additions & 6 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

const { CLIEngine } = require('eslint');
const { ESLint } = require('eslint');
const test = require('tape');

const configFile = require.resolve('../eslintrc.json');
const linter = new CLIEngine({ configFile });
const overrideConfigFile = require.resolve('../eslintrc.json');
const linter = new ESLint({ overrideConfigFile });

test('api: lintText', t => {
test('api: lintText', async t => {
t.plan(1);
const result = linter.executeOnText("console.log('hi there')\n\n");
t.equals(result.results[0].messages[0].message, 'Missing semicolon.');
const [result] = await linter.lintText("console.log('hi there')\n\n");
t.equal(result.messages[0].message, 'Missing semicolon.');
});

0 comments on commit 631a9da

Please sign in to comment.