Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request #40 from DesignByOnyx/38-orm-tests
Browse files Browse the repository at this point in the history
Update ORM tests to cover revove() method
  • Loading branch information
ekryski committed May 3, 2017
2 parents 919b561 + aaeabea commit e67d90b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/orm-tests.js
Expand Up @@ -69,6 +69,12 @@ export default function orm (people, errors, idProp = 'id') {
expect(Object.getPrototypeOf(result)).to.equal(Object.prototype)
).catch(noPOJO);
});

it('returns a POJO for remove()', () => {
return people.remove(_ids.Doug).then(result =>
expect(Object.getPrototypeOf(result)).to.equal(Object.prototype)
).catch(noPOJO);
});
});
});
}

0 comments on commit e67d90b

Please sign in to comment.