Fix tests.

This commit is contained in:
André Cruz
2013-05-24 00:20:15 +01:00
parent 81381fac75
commit 11834a4186

View File

@@ -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