Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(entity): fix reset and test
Browse files Browse the repository at this point in the history
  • Loading branch information
doktordirk committed Jul 12, 2016
1 parent b7deb2c commit 51dd588
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/entity.js
Expand Up @@ -699,7 +699,7 @@ function getCollectionsCompact(forEntity, includeNew) {
return;
}

if (!entity instanceof Entity) {
if (!(entity instanceof Entity)) {
return;
}

Expand Down
1 change: 0 additions & 1 deletion test/entity.spec.js
Expand Up @@ -353,7 +353,6 @@ describe('Entity', function() {

expect(entity.isDirty()).toBe(false);
expect(entity.id).toBe(667);
expect(entity.foo[0]).toBe(1);
expect(entity.bar.buz).toBe(true);
expect(entity.__cleanValues.checksum).toBe(checksum);
});
Expand Down

0 comments on commit 51dd588

Please sign in to comment.