UNPKG

alexa-app

Version:

A module to simplify creation of Alexa (Amazon Echo) apps (Skills) using Node.js

13 lines (9 loc) 331 B
"use strict"; var fs = require("fs"); var path = require("path"); function MockHelper() {} MockHelper.prototype.load = function(mockFile = "") { var fixturePath = path.join(__dirname, "../../test/fixtures"); return JSON.parse(fs.readFileSync(path.join(fixturePath, mockFile), "utf8")); }; module.exports = new MockHelper();