Skip to content

Commit

Permalink
test: Fix a badly written test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Dec 15, 2015
1 parent b3b7eaf commit 399babc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/Instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,9 @@ describe("Instance",() => {

return core.Test.insert({
answer: 1
}).then(() => chai.expect(core.Test.get().then((instance) => {
return instance.save().then(() => {
core.Test.collection.update = update;
});
})));
}).then(() => core.Test.get()).then(instance => instance.save()).then(() => {
core.Test.collection.update = update;
});
});

it("should insert the instance if it is not present in the database",() => {
Expand Down

0 comments on commit 399babc

Please sign in to comment.