Permalink
Browse files

fix(entity-manager): revert entity prototype test. gives false positi…

…ves in ts
  • Loading branch information...
doktordirk committed Oct 4, 2016
1 parent 3417520 commit b44de7f761be0976ceb7d0c6c7f7152b92a6f231
Showing with 1 addition and 9 deletions.
  1. +0 −8 src/entity-manager.js
  2. +1 −1 test/entity-manager.spec.js
@@ -47,14 +47,6 @@ export class EntityManager {
* @chainable
*/
registerEntity(EntityClass) {
if (!Entity.isPrototypeOf(EntityClass)) {
throw new Error(`
Trying to register non-Entity with aurelia-orm.
Are you using 'import *' to load your entities?
<http://aurelia-orm.spoonx.org/configuration.html>
`);
}
this.entities[OrmMetadata.forTarget(EntityClass).fetch('resource')] = EntityClass;
return this;
@@ -38,7 +38,7 @@ describe('EntityManager', function() {
expect(entityManager.entities).toEqual({'with-resource': WithResource});
});
it('Should throw when register with non-Entity', function() {
xit('Should throw when register with non-Entity', function() {
let entityManager = new EntityManager(new Container());
class Wrong {}

0 comments on commit b44de7f

Please sign in to comment.