From dbcf16b598398cc00a6b1ae4bdd54358c3a45ca5 Mon Sep 17 00:00:00 2001 From: subeesh chothendavida Date: Tue, 26 Jan 2016 17:23:02 -0800 Subject: [PATCH] Fix the `path` typo #63 --- app/templates/_test_express.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/_test_express.js b/app/templates/_test_express.js index 04ec817..4799c7d 100644 --- a/app/templates/_test_express.js +++ b/app/templates/_test_express.js @@ -59,7 +59,7 @@ test('api', function (t) { var responseSchema = enjoi({<%_.forEach(Object.keys(responseSchema), function (k, i) {%> '<%=k%>': <%=JSON.stringify(responseSchema[k])%><%if (i < Object.keys(responseSchema).length - 1) {%>, <%}%><%})%> }, { - '#': <%if (apiPath.indexOf('.yaml') === apiPath.length - 5 || apiPath.indexOf('.yml') === apiPath.length - 4) {%> jsYaml.load(fs.readFileSync(path.join(__dirname, './<%=apiPath%>'))) <% }else{ %> require(Path.join(__dirname, './<%=apiPath%>')) <% } %> + '#': <%if (apiPath.indexOf('.yaml') === apiPath.length - 5 || apiPath.indexOf('.yml') === apiPath.length - 4) {%> jsYaml.load(fs.readFileSync(path.join(__dirname, './<%=apiPath%>'))) <% }else{ %> require(path.join(__dirname, './<%=apiPath%>')) <% } %> }); <%}%>