Passed
Push — master ( 9af5ff...b6034a )
by Andrii
02:55
created

index.test.js ➔ run   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
1
const postcss = require('postcss')
2
3
const plugin = require('./')
4
5
async function run (input, output, opts = { }) {
6
  let result = await postcss([plugin(opts)]).process(input, { from: undefined })
7
  expect(result.css).toEqual(output)
8
  expect(result.warnings()).toHaveLength(0)
9
}
10
11
/* Write tests here
12
13
it('does something', async () => {
14
  await run('a{ }', 'a{ }', { })
15
})
16
17
*/
18