Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #64 from subeeshcbabu/unittest
Browse files Browse the repository at this point in the history
Fix the `path` typo #63
  • Loading branch information
grawk committed Feb 3, 2016
2 parents 51bc8d6 + dbcf16b commit 008bd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/_test_express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%>')) <% } %>
});
<%}%>

Expand Down

0 comments on commit 008bd1b

Please sign in to comment.