mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
16 lines
253 B
JavaScript
16 lines
253 B
JavaScript
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
function getFile(fileName) {
|
|
let data = fs.readFileSync(path.join(__dirname, `fixtures/${fileName}`));
|
|
|
|
return {
|
|
data: data,
|
|
fileName: fileName
|
|
};
|
|
}
|
|
|
|
module.exports = {
|
|
getFile
|
|
};
|