diff --git a/README.md b/README.md index 5cece7f..0b8642b 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/test/fixtures/test.csv b/test/fixtures/test.csv index 1247c8b..d831a3d 100644 --- a/test/fixtures/test.csv +++ b/test/fixtures/test.csv @@ -1,2 +1,2 @@ -"r1c1", "r1c2" -"r2c1", "r2c2" +"r1c1","r1c2" +"r2c1","r2c2" diff --git a/test/index.js b/test/index.js index 5c32f1d..d243111 100644 --- a/test/index.js +++ b/test/index.js @@ -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);