literate-jasmine
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "literate-jasmine", | ||
"description": "write tests in markdown that are parsed to specification files to run with jasmine-node", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "literate-jasmine": "./bin/literate-jasmine" |
describe("literate-jasmine ", function() { | ||
describe("Mathematics", function() { | ||
it("add can add numbers", function() { | ||
@@ -11,2 +13,3 @@ var a = 1, | ||
}); | ||
it("can divide numbers", function() { | ||
@@ -17,2 +20,3 @@ var a = 6, | ||
}); | ||
it("appending works with +", function() { | ||
@@ -23,4 +27,7 @@ var text = "abc"; | ||
}); | ||
}); | ||
describe("Strings", function() { | ||
it("appending works with +", function() { | ||
@@ -31,3 +38,5 @@ var text = "abc"; | ||
}); | ||
}); | ||
}); |
@@ -23,6 +23,6 @@ var fs = require('fs'); | ||
lines.push('describe("' + parserOutput.name + '", function() {'); | ||
lines.push('describe("' + parserOutput.name + '", function() {\n'); | ||
parserOutput.describes.forEach(function(describe) { | ||
lines.push(indentLine('describe("' + describe.name + '", function() {', 2)); | ||
lines.push(indentLine('describe("' + describe.name + '", function() {\n', 2)); | ||
@@ -32,6 +32,6 @@ describe.it.forEach(function(it) { | ||
lines.push(indentCode(it.code, 6)); | ||
lines.push(indentLine('});', 4)); | ||
lines.push(indentLine('});\n', 4)); | ||
}); | ||
lines.push(indentLine('});', 2)); | ||
lines.push(indentLine('});\n', 2)); | ||
}); | ||
@@ -38,0 +38,0 @@ |
12065