Skip to content

Commit 9cbabcd

Browse files
committed
added test case of literate coffee-script
1 parent 11ebc21 commit 9cbabcd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

test/cases/loaders/coffee-loader/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ it("should handle the coffee loader correctly", function() {
22
require("!coffee!../_resources/script.coffee").should.be.eql("coffee test");
33
require("../_resources/script.coffee").should.be.eql("coffee test");
44
});
5+
6+
it("should handle literate coffee script correctly", function() {
7+
require("!coffee?literate!./script.coffee.md").should.be.eql("literate coffee test");
8+
});
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# literate coffeescript test
2+
3+
Set some `condition` to `true
4+
5+
condition = true
6+
7+
Create an object with some text
8+
9+
obj =
10+
text: "literate coffee test"
11+
12+
Export the text if the condition is true
13+
14+
module.exports = obj.text if condition?

0 commit comments

Comments
 (0)