Skip to content

Commit

Permalink
Don't return a nested array of paths
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlacroix committed Mar 21, 2016
1 parent 2b42eae commit 07e3ab1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

};
};
10 changes: 10 additions & 0 deletions test/path_test.js
Original file line number Diff line number Diff line change
@@ -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');
});
});

0 comments on commit 07e3ab1

Please sign in to comment.