Commit 98aff4a1 by Alex MacCaw

fix tests

parent a6f78461
......@@ -40,7 +40,7 @@ describe('Company', function () {
type: 'queued'
}
});
return Company.find({domain: 'uber.com'})
return expect(Company.find({domain: 'uber.com'}))
.to.be.rejectedWith(Company.QueuedError);
});
......
......@@ -53,8 +53,8 @@ describe('Person', function () {
type: 'queued'
}
});
return Person.find({email: 'alex@alexmaccaw.com'})
.to.be.rejectedWith(Company.QueuedError);
return expect(Person.find({email: 'alex@alexmaccaw.com'}))
.to.be.rejectedWith(Person.QueuedError);
});
it('can handle unknown records', function () {
......
......@@ -39,7 +39,7 @@ describe('PersonCompany', function () {
type: 'queued'
}
});
return PersonCompany.find({email: 'alex@alexmaccaw.com'})
return expect(PersonCompany.find({email: 'alex@alexmaccaw.com'}))
.to.be.rejectedWith(PersonCompany.QueuedError);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment