From 07e3ab1955aab082b7d6ce2b95194bcefd775aab Mon Sep 17 00:00:00 2001 From: Michael LaCroix Date: Mon, 21 Mar 2016 14:05:59 -0500 Subject: [PATCH] Don't return a nested array of paths --- index.js | 6 ++---- test/path_test.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 test/path_test.js diff --git a/index.js b/index.js index 17a62ba..f991a80 100644 --- a/index.js +++ b/index.js @@ -2,12 +2,10 @@ var path = require('path'); var bourbon = require('bourbon'); module.exports = { - - includePaths: [bourbon.includePaths], + includePaths: bourbon.includePaths, with: function() { var paths = Array.prototype.slice.call(arguments); return [].concat.apply([bourbon.includePaths], paths); } - -}; \ No newline at end of file +}; diff --git a/test/path_test.js b/test/path_test.js new file mode 100644 index 0000000..3b6d821 --- /dev/null +++ b/test/path_test.js @@ -0,0 +1,10 @@ +const chai = require('chai'); +const assert = chai.assert; +const bourbon = require('../'); + +describe('#includePaths', function() { + it('should export an array of paths', function() { + assert.isArray(bourbon.includePaths); + assert.isString(bourbon.includePaths[0], 'first #includePaths path'); + }); +});