Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #48 from sindresorhus/always-array

Remove silly magic, always return an array, even when single
  • Loading branch information...
commit 6e29eb9c74a3c33ad117e97ffb94771e664b848d 2 parents db3f5ab + 87cb3ce
@fat fat authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/index.js
  2. +2 −2 test/types/compile.js
View
2  lib/index.js
@@ -59,7 +59,7 @@ module.exports = function (paths, options, callback) {
err = err.length ? err[0] : null
//callback
- callback && callback(err, instances.length > 1 ? instances : instances[0])
+ callback && callback(err, instances)
}
// start processing paths
View
4 test/types/compile.js
@@ -12,9 +12,9 @@ fs.readdirSync('test/fixtures').forEach(function (file, index) {
RECESS('test/fixtures/' + file, { compile: true, inlineImages: true }, function (err, fat) {
file = file.replace(/less$/, 'css')
assert.ok(err == null)
- assert.ok(fat.output[0] == fs.readFileSync('test/compiled/' + file, 'utf-8'))
+ assert.ok(fat[0].output[0] == fs.readFileSync('test/compiled/' + file, 'utf-8'))
})
})
-console.log("✓ compiling".green)
+console.log("✓ compiling".green)
Please sign in to comment.
Something went wrong with that request. Please try again.