Skip to content

Commit

Permalink
fix: additional test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Oct 12, 2023
1 parent dd31253 commit 732a64b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/transport/rest/protocol/deserializer.js
Expand Up @@ -38,7 +38,8 @@ function deserializeDocument (serialized) {
return res;
}
catch (e) {
throw new errors.Request(serialized + " error:" + e);
throw e;
//throw new errors.Request(serialized + " error:" + JSON.stringify(e));
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/db/query-test.js
Expand Up @@ -264,7 +264,7 @@ describe("Database API - Query", function () {
});
});
it('should select a record by its RID', function () {
return this.db.select().from('OUser').where({'@rid': new LIB.RID('#5:0')}).one()
return this.db.select().from('OUser').where({'@rid': new LIB.RID('#6:0')}).one()
.then(function (user) {
expect(typeof user).to.equal('object');
user.name.should.equal('admin');
Expand Down Expand Up @@ -388,7 +388,7 @@ describe("Database API - Query", function () {
name: 'reader',
password: 'mynewerpassword',
status: 'active',
roles: ["#4:1"],
roles: ["#5:1"],
foo: 'bar'};
return this.db.update('OUser').content(updatedUser).where({name: 'reader'}).limit(1).scalar()
.then(function (count) {
Expand Down

0 comments on commit 732a64b

Please sign in to comment.