(dir)
| 3 | var link = require('../'); |
| 4 | |
| 5 | function testDir(dir) { |
| 6 | fs.readdirSync(dir).forEach(function(name) { |
| 7 | if (!/\.input\.json$/.test(name)) return; |
| 8 | test(name, function() { |
| 9 | var actual = link(JSON.parse(fs.readFileSync(dir + '/' + name, 'utf8'))); |
| 10 | expect(actual).toMatchSnapshot(); |
| 11 | }); |
| 12 | }); |
| 13 | } |
| 14 | |
| 15 | function testDirError(dir) { |
| 16 | fs.readdirSync(dir).forEach(function(name) { |
no test coverage detected
searching dependent graphs…