Files: ecf6563965cf3a734a59dfba74cd29977efbe9d6 / 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