1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2024-11-08 19:11:31 +01:00
eslint-config-conventions/test/basic.js
2022-03-19 14:28:00 +01:00

15 lines
349 B
JavaScript

const tap = require('tap')
const config = require('../index.js')
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
}