mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Fix some typos that were causing issues in node 0.10.x
This commit is contained in:
@@ -436,19 +436,25 @@ describe('Resolver', function () {
|
||||
});
|
||||
|
||||
describe('_applyPkgMeta', function () {
|
||||
var tempDir = path.normalize(__dirname + '/../assets/tmp');
|
||||
|
||||
it('should return a promise', function (done) {
|
||||
var resolver = new Resolver('foo'),
|
||||
promise = resolver._applyPkgMeta({ name: 'foo' });
|
||||
|
||||
resolver._tempDir = tempDir;
|
||||
|
||||
expect(promise).to.be.an('object');
|
||||
expect(promise.then).to.be.an('function');
|
||||
promise.then(done.bind(done, null), done.bind(done, null));
|
||||
});
|
||||
|
||||
it('should resolve with the the same package meta', function (next) {
|
||||
it('should resolve with the same package meta', function (next) {
|
||||
var resolver = new Resolver('foo'),
|
||||
meta = { name: 'foo' };
|
||||
|
||||
resolver._tempDir = tempDir;
|
||||
|
||||
resolver._applyPkgMeta(meta)
|
||||
.then(function (retMeta) {
|
||||
expect(retMeta).to.equal(meta);
|
||||
@@ -573,7 +579,7 @@ describe('Resolver', function () {
|
||||
promise.then(done.bind(done, null), done.bind(done, null));
|
||||
});
|
||||
|
||||
it('should resolve with the the same package meta', function (next) {
|
||||
it('should resolve with the same package meta', function (next) {
|
||||
var resolver = new Resolver('foo'),
|
||||
meta = { name: 'foo' };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user