(index)
| 21 | it('calls beforeCompress when it is an array', () => { |
| 22 | let called = [false, false]; |
| 23 | const pluginFactory = (index) => (ast, options) => { |
| 24 | assert(ast); |
| 25 | assert(options); |
| 26 | called[index] = true; |
| 27 | }; |
| 28 | const ast = minify(css, { |
| 29 | beforeCompress: [pluginFactory(0), pluginFactory(1)] |
| 30 | }); |
no outgoing calls
no test coverage detected
searching dependent graphs…