Fix some typos that were causing issues in node 0.10.x

This commit is contained in:
marcooliveira
2013-04-22 20:12:44 +01:00
parent 504222b564
commit 8c3446fb1f
2 changed files with 11 additions and 4 deletions

View File

@@ -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' };