Skip to content

Commit f328414

Browse files
committed
update tests assertions due to server changes
1 parent f9ee06c commit f328414

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

test/e2e/specs/data-relations.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('Data - Relations', function() {
5050
return Promise.resolve()
5151
.then(() => ParentTable.findById(parent.objectId, query))
5252
.then(result => {
53-
expect(result).to.have.property('child').that.have.to.be.null
53+
expect(result).to.not.have.property('child')
5454
})
5555
})
5656

@@ -61,7 +61,7 @@ describe('Data - Relations', function() {
6161
.then(() => ParentTable.findById(parent.objectId, query))
6262
.then(result => {
6363
expect(result).to.have.property('child').that.have.to.be.not.null
64-
expect(result.child).to.have.property('grandChild').that.have.to.be.null
64+
expect(result.child).to.not.have.property('grandChild')
6565
})
6666
})
6767

@@ -103,9 +103,6 @@ describe('Data - Relations', function() {
103103
return createRelationColumn('Contact', 'address_Address', 'Address', 'ONE_TO_ONE')
104104
.then(() => contactStore.setRelation(savedContact, 'address_Address', [savedAddress]))
105105
})
106-
.then(result => {
107-
console.log(result)
108-
})
109106
})
110107

111108
})

test/e2e/specs/persistence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ describe('Data', function() {
314314
.then(createBigTable)
315315
.then(() => db.find(query))
316316
.catch(error => {
317-
expect(error.message).to.be.equal('Unable to retrieve data. Query contains invalid object properties.')
317+
expect(error.message).to.be.equal('Column \'nonExistingProp\' does not exist in table \'TableWithPagination\'')
318318
})
319319
})
320320

0 commit comments

Comments
 (0)