mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
add quotes around the path and fix the test
This commit is contained in:
@@ -35,7 +35,7 @@ function find(folder, callback) {
|
||||
fs.exists(file, function (exists) {
|
||||
if (exists) return callback(null, file);
|
||||
|
||||
var err = new Error('Neither bower.json nor component.json were found in ' + folder);
|
||||
var err = new Error('Neither bower.json nor component.json were found in "' + folder + '"');
|
||||
err.code = 'ENOENT';
|
||||
callback(err);
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@ describe('.find', function () {
|
||||
bowerJson.find(__dirname, function (err) {
|
||||
expect(err).to.be.an(Error);
|
||||
expect(err.code).to.equal('ENOENT');
|
||||
expect(err.message).to.contain('no json file');
|
||||
expect(err.message).to.equal('Neither bower.json nor component.json were found in "' + __dirname + '"');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user