Files: 66b5635a9a864ebf035dcd24a8011a13f5d9f323 / tests / helpers / mock.js
263 bytesRaw
1 | const { readFileSync } = require('fs'); |
2 | const { join } = require('path'); |
3 | |
4 | module.exports.readMock = function readMock(mockFilename) { |
5 | const filePath = join(__dirname, '..', '__mocks__', mockFilename); |
6 | return readFileSync(filePath, { encoding: 'utf-8' }); |
7 | }; |
8 |
Built with git-ssb-web