mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2024-11-08 19:11:31 +01:00
test: fix with new rules introduced
This commit is contained in:
parent
c3b46debe6
commit
e0f93343fe
@ -2,13 +2,13 @@ const tap = require('tap')
|
|||||||
|
|
||||||
const config = require('../index.js')
|
const config = require('../index.js')
|
||||||
|
|
||||||
|
const isObject = (object) => {
|
||||||
|
return typeof object === 'object' && object !== null
|
||||||
|
}
|
||||||
|
|
||||||
tap.test('test basic properties of config', async (t) => {
|
tap.test('test basic properties of config', async (t) => {
|
||||||
t.ok(isObject(config.parserOptions))
|
t.ok(isObject(config.parserOptions))
|
||||||
t.ok(isObject(config.env))
|
t.ok(isObject(config.env))
|
||||||
t.ok(isObject(config.rules))
|
t.ok(isObject(config.rules))
|
||||||
t.ok(isObject(config.overrides))
|
t.ok(isObject(config.overrides))
|
||||||
})
|
})
|
||||||
|
|
||||||
function isObject(object) {
|
|
||||||
return typeof object === 'object' && object !== null
|
|
||||||
}
|
|
||||||
|
2
test/fixtures/top-level-await.mjs
vendored
2
test/fixtures/top-level-await.mjs
vendored
@ -1,3 +1,3 @@
|
|||||||
const foo = await 1
|
const foo = await 1
|
||||||
const bar = function () {}
|
const bar = () => {}
|
||||||
await bar(foo)
|
await bar(foo)
|
||||||
|
Loading…
Reference in New Issue
Block a user