Passed
Push — master ( b6034a...290597 )
by Andrii
02:57
created

__sandbox__/postcss-d-ts-8/index.test.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 9
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
mnd 0
bc 0
fnc 1
dl 0
loc 9
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.test.js ➔ run 0 5 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