1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2024-09-17 01:15:52 +02:00

test: fix with new rules introduced

This commit is contained in:
Divlo 2022-08-31 14:00:08 +02:00
parent c3b46debe6
commit e0f93343fe
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
2 changed files with 5 additions and 5 deletions

View File

@ -2,13 +2,13 @@ const tap = require('tap')
const config = require('../index.js')
const isObject = (object) => {
return typeof object === 'object' && object !== null
}
tap.test('test basic properties of config', async (t) => {
t.ok(isObject(config.parserOptions))
t.ok(isObject(config.env))
t.ok(isObject(config.rules))
t.ok(isObject(config.overrides))
})
function isObject(object) {
return typeof object === 'object' && object !== null
}

View File

@ -1,3 +1,3 @@
const foo = await 1
const bar = function () {}
const bar = () => {}
await bar(foo)