1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2024-12-18 21:45:04 +01:00
eslint-config-conventions/test/basic.js

15 lines
352 B
JavaScript
Raw Permalink Normal View History

2022-03-19 14:28:00 +01:00
const tap = require('tap')
2022-02-19 16:05:21 +01:00
const config = require('../index.js')
2022-08-31 14:00:08 +02:00
const isObject = (object) => {
return typeof object === 'object' && object !== null
}
2022-03-19 14:28:00 +01:00
tap.test('test basic properties of config', async (t) => {
2022-02-19 16:05:21 +01:00
t.ok(isObject(config.parserOptions))
t.ok(isObject(config.env))
t.ok(isObject(config.rules))
t.ok(isObject(config.overrides))
})