diff --git a/test/basic.js b/test/basic.js index 599376c..3bc8b46 100644 --- a/test/basic.js +++ b/test/basic.js @@ -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 -} diff --git a/test/fixtures/top-level-await.mjs b/test/fixtures/top-level-await.mjs index e814772..b66c7f6 100644 --- a/test/fixtures/top-level-await.mjs +++ b/test/fixtures/top-level-await.mjs @@ -1,3 +1,3 @@ const foo = await 1 -const bar = function () {} +const bar = () => {} await bar(foo)