Passed
Push — master ( b6034a...290597 )
by Andrii
02:57
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
c 0
b 0
f 0
rs 10
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