* @param {string} testCase
(testCase)
| 8 | * @param {string} testCase |
| 9 | */ |
| 10 | function describeTest(testCase) { |
| 11 | const source = readfile(testCase, 'source.css'); |
| 12 | if (source === null) { |
| 13 | return; |
| 14 | } |
| 15 | |
| 16 | // @todo add a small shortcut to choose certain tests |
| 17 | test(basename(testCase), () => { |
| 18 | const expected = JSON.parse(readfile(testCase, 'expected.json')); |
| 19 | assert.deepEqual(require(resolve(testCase, 'source.css')), expected); |
| 20 | }); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @param {string} dir |
nothing calls this directly
no test coverage detected
searching dependent graphs…