diff --git a/test/postcss.test.ts b/test/postcss.test.ts index 279ea60a2..ee2b88dba 100755 --- a/test/postcss.test.ts +++ b/test/postcss.test.ts @@ -122,9 +122,12 @@ test('has deprecated method to creat plugins', () => { } }) + equal(warn.callCount, 0) + let func1: any = postcss(plugin).plugins[0] is(func1.postcssPlugin, 'test') match(func1.postcssVersion, /\d+.\d+.\d+/) + equal(warn.callCount, 1) let func2: any = postcss(plugin()).plugins[0] equal(func2.postcssPlugin, func1.postcssPlugin) @@ -132,7 +135,6 @@ test('has deprecated method to creat plugins', () => { let result1 = postcss(plugin('one')).process('a{ one: 1; two: 2 }') is(result1.css, 'a{ two: 2 }') - equal(warn.callCount, 1) let result2 = postcss(plugin).process('a{ one: 1; two: 2 }') is(result2.css, 'a{ one: 1 }')