(filePath, expectedObj)
| 3 | import path from 'path'; |
| 4 | |
| 5 | export default function assertFileContainsJSON(filePath, expectedObj) { |
| 6 | return assertFileContains(filePath, JSON.stringify(expectedObj, null, 2)); |
| 7 | } |
| 8 | |
| 9 | function assertFileContains(filePath, expectedContents) { |
| 10 | let regex = new RegExp(`${escapeForRegex(expectedContents)}($|\\W)`, 'gm'); |
no test coverage detected
searching dependent graphs…