Skip to content

Commit

Permalink
fix: use some specific class for property tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Oct 17, 2023
1 parent fa9b46a commit 9dc8ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/database/property-test.js
Expand Up @@ -11,7 +11,7 @@ describe("ODatabaseSession API - Class - Property", function () {
this.db = db;
})
.then(function () {
return this.db.class.get('OUser');
return this.db.class.create('TestProperty');
})
.then(function (item) {
this.class = item;
Expand All @@ -23,7 +23,7 @@ describe("ODatabaseSession API - Class - Property", function () {

describe('Db::class.property.list()', function () {
it('should list the properties in the class', function () {
return this.class.property.list()
return this.db.class.get('OUser').property.list()
.bind(this)
.then(function (properties) {
properties.length.should.be.above(0);
Expand Down Expand Up @@ -89,7 +89,7 @@ describe("ODatabaseSession API - Class - Property", function () {

describe('Db::class.property.get()', function () {
it('should get the property with the given name', function () {
return this.class.property.get('roles')
return this.db.class.get('OUser').property.get('roles')
.then(function (item) {
item.name.should.equal('roles');
});
Expand Down

0 comments on commit 9dc8ae4

Please sign in to comment.