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

Commit

Permalink
move isInstanceOf to typly and use
Browse files Browse the repository at this point in the history
  • Loading branch information
evlach committed Nov 23, 2015
1 parent b85622a commit 07277ef
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions test/PersistenceUtils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,4 @@ describe("cassandra-jpa::PersistenceUtils", function ()
assert.equal(o.id, newEntity._id);
});
});
describe("#isInstanceOf", function ()
{
it("should find instance of Class", function ()
{
class Foo {
constructor(){
this.test = "tttt";
}
}
let entity = new Foo();
assert.equal(m.PersistenceUtils.isInstanceOf(entity, Foo), true);
});
it("should find instance of Entity Class", function ()
{
let entity = new m.tests.Foo();
assert.equal(m.PersistenceUtils.isInstanceOf(entity, m.tests.Foo), true);
});
it("should find instance of FooFunc", function ()
{
let FooFunc = function(){
this.test = "test";
};
let entity = new FooFunc();
assert.equal(m.PersistenceUtils.isInstanceOf(entity, FooFunc), true);
});

});
});

0 comments on commit 07277ef

Please sign in to comment.