mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Fix tests.
This commit is contained in:
@@ -85,7 +85,7 @@ Resolver.prototype.resolve = function () {
|
||||
// Resolve self
|
||||
.then(this._resolve.bind(this))
|
||||
// Read json, generating the package meta
|
||||
.then(this._readJson.bind(this, this._tempDir))
|
||||
.then(this._readJson.bind(this, null))
|
||||
.then(function (meta) {
|
||||
return Q.all([
|
||||
// Apply package meta
|
||||
@@ -148,6 +148,8 @@ Resolver.prototype._createTempDir = function () {
|
||||
Resolver.prototype._readJson = function (dir) {
|
||||
var deferred = Q.defer();
|
||||
|
||||
dir = dir || this._tempDir;
|
||||
|
||||
Q.nfcall(bowerJson.find, dir)
|
||||
.then(function (filename) {
|
||||
// If it is a component.json, warn about the deprecation
|
||||
|
||||
Reference in New Issue
Block a user