diff --git a/index.js b/index.js index f991a80..7ad1c20 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,6 @@ module.exports = { with: function() { var paths = Array.prototype.slice.call(arguments); - return [].concat.apply([bourbon.includePaths], paths); + return [].concat.apply(bourbon.includePaths, paths); } }; diff --git a/test/with_test.js b/test/with_test.js index 3baedf4..bed6136 100644 --- a/test/with_test.js +++ b/test/with_test.js @@ -1,5 +1,7 @@ -var sass = require('node-sass') - , bourbon = require('../'); +const chai = require('chai'); +const assert = chai.assert; +const sass = require('node-sass'); +const bourbon = require('../'); function partialsDir(path) { return __dirname + '/fixtures/concat/' + path; @@ -15,6 +17,11 @@ function errorHandler(err) { describe('#with function', function() { + it('should return an array of paths', function() { + assert.isArray(bourbon.with()); + assert.isString(bourbon.with()[0], 'first #with function path'); + }); + it('should concat string paths using #with', function(done) { sass.render({ file: __dirname + '/fixtures/concat.scss',