Created
June 10, 2017 12:22
-
-
Save iamgoangle/92ccd0d46537f8314ff50dbc0b8d01d8 to your computer and use it in GitHub Desktop.
db.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| let mockFile = (schema) => { | |
| return require(path.join(__dirname, 'mock/', schema)); | |
| }; | |
| module.exports = () => { | |
| return { | |
| customers: mockFile('customers.js'), | |
| products: mockFile('products.js') | |
| }; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment