Skip to content

Commit

Permalink
tests; toObject -> toJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Sep 9, 2013
1 parent 8621b5c commit 51f97f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/model.discriminator.test.js
Expand Up @@ -170,7 +170,7 @@ describe('model', function() {
done();
});

it('allows toObject to be overridden', function(done) {
it('allows toJSON to be overridden', function(done) {
assert.notDeepEqual(Employee.schema.get('toJSON'), Person.schema.get('toJSON'));
assert.deepEqual(Employee.schema.get('toJSON'), { getters: false, virtuals: true });
done();
Expand Down

0 comments on commit 51f97f2

Please sign in to comment.