Nuxt/test/fixtures/with-config/with-config.test.js
2018-08-16 17:23:26 +01:00

14 lines
458 B
JavaScript

const consola = require('consola')
const { buildFixture } = require('../../utils/build')
describe('with-config', () => {
buildFixture('with-config', () => {
expect(consola.warn).toHaveBeenCalledTimes(1)
expect(consola.warn.mock.calls[0]).toMatchObject([{
message: 'Found 2 plugins that match the configuration, suggest to specify extension:',
additional: expect.stringContaining('plugins/test.json'),
badge: true
}])
})
})