Skip to content

Commit

Permalink
New: Add test and note for csv support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Kellen authored and phated committed Jan 3, 2019
1 parent 175d0d8 commit c2ac0ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This module can find, require and register any file type the npm ecosystem has a

**Currently supported extensions:**

`.co, .coco, .coffee, .iced, .ini, .js, .json, .litcoffee, .ls, .toml, .xml, .yaml, .yml`
`.co, .coco, .coffee, .csv, .iced, .ini, .js, .json, .litcoffee, .ls, .toml, .xml, .yaml, .yml`

**Note:** If you'd like to add a new extension, please make a PR for [interpret](https://github.com/tkellen/node-interpret).

Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/test.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"r1c1", "r1c2"
"r2c1", "r2c2"
"r1c1","r1c2"
"r2c1","r2c2"
2 changes: 0 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ describe('registerFor', function () {
rechoir.registerFor('./test/fixtures/test.coffee');
expect(require('./fixtures/test.coffee')).to.deep.equal(expected);
});
/*
it('should know csv', function () {
rechoir.registerFor('./test/fixtures/test.csv');
expect(require('./fixtures/test.csv')).to.deep.equal([['r1c1','r1c2'],['r2c1','r2c2']]);
});
*/
it('should know iced-coffee-script', function () {
rechoir.registerFor('./test/fixtures/test.iced');
expect(require('./fixtures/test.iced')).to.deep.equal(expected);
Expand Down

0 comments on commit c2ac0ff

Please sign in to comment.