Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Update copy plugin test to pass valid options
Browse files Browse the repository at this point in the history
Since `copy-webpack-plugin` now validates the patterns passed, as of:
webpack-contrib/copy-webpack-plugin/pull/419
  • Loading branch information
edmorley committed Dec 13, 2019
1 parent 5a0d288 commit 4e32689
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/copy/test/middleware_test.js
Expand Up @@ -2,7 +2,10 @@ import test from 'ava';
import Neutrino from '../../neutrino/Neutrino';

const mw = (...args) => require('..')(...args);
const options = { patterns: [{}], options: { ignore: /\.css$/ } };
const options = {
patterns: ['shorthand-form', { from: 'source', to: 'dest' }],
options: { ignore: /\.css$/ },
};

test('loads middleware', t => {
t.notThrows(() => require('..'));
Expand Down

0 comments on commit 4e32689

Please sign in to comment.