Skip to content

Commit 97faea7

Browse files
author
mpv1989
committed
Fix test
1 parent 986e8e2 commit 97faea7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/06-managing-functions.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Database } from "../arangojs";
21
import { expect } from "chai";
2+
import { Database } from "../arangojs";
33

44
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30000);
55
const it34 = ARANGO_VERSION >= 30400 ? it : it.skip;
@@ -71,10 +71,8 @@ describe("Managing functions", function() {
7171
"function (celsius) { return celsius * 1.8 + 32; }"
7272
)
7373
.then(info => {
74-
expect(info).to.eql({
75-
code: 201,
76-
error: false
77-
});
74+
expect(info).to.have.property("code", 201);
75+
expect(info).to.have.property("error", false);
7876
})
7977
.then(() => done())
8078
.catch(done);

0 commit comments

Comments
 (0)