diff --git a/test/usage.test.js b/test/usage.test.js index 8dceaab8..ae2553c9 100644 --- a/test/usage.test.js +++ b/test/usage.test.js @@ -1,14 +1,20 @@ import test from 'ava'; import FaviconsWebpackPlugin from '..'; -import {logo} from './util'; +import {logo, mkdir} from './util'; -test('should throw error when called without arguments', t => { +test('should throw error when instantiated without a logo', t => { try { new FaviconsWebpackPlugin(); } catch (err) { t.is(err.message, 'FaviconsWebpackPlugin options are required'); } + + try { + new WebappWebpackPlugin({}); + } catch (err) { + t.is(err.message, 'An input file is required'); + } }); test('should take a string as argument', t => {