Skip to content

Commit

Permalink
New: Add tests for Earl Grey support
Browse files Browse the repository at this point in the history
  • Loading branch information
MadcapJake authored and phated committed Jan 4, 2019
1 parent 81b5862 commit 77cbc95
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules
egcache
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -35,6 +35,7 @@
"chai": "^2.3.0",
"coco": "^0.9.1",
"coffee-script": "^1.9.2",
"earlgrey": "0.0.9",
"iced-coffee-script": "^1.8.0-d",
"interpret": "^0.6.1",
"json5": "^0.4.0",
Expand All @@ -61,6 +62,7 @@
"coffee",
"coffee.md",
"csv",
"earlgrey",
"es",
"es6",
"iced",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/test.eg
@@ -0,0 +1,9 @@
module.exports = {
data = {
trueKey = true
falseKey = false
subKey = {
subProp = 1
}
}
}
4 changes: 4 additions & 0 deletions test/index.js
Expand Up @@ -110,6 +110,10 @@ describe('rechoir', function () {
rechoir.prepare(extensions, './test/fixtures/test.csv');
expect(require('./fixtures/test.csv')).to.deep.equal([['r1c1','r1c2'],['r2c1','r2c2']]);
});
it('should know earl-grey', function () {
rechoir.prepare(extensions, './test/fixtures/test.eg');
expect(require('./fixtures/test.eg')).to.deep.equal(expected);
});
it('should know iced-coffee-script', function () {
rechoir.prepare(extensions, './test/fixtures/test.iced');
expect(require('./fixtures/test.iced')).to.deep.equal(expected);
Expand Down

0 comments on commit 77cbc95

Please sign in to comment.