1
0
Fork 0

fix tests with Valgrind

This commit is contained in:
Jan Steemann 2014-08-21 11:52:05 +02:00
parent 1edd170317
commit 317c7870f0
1 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,7 @@
var internal = require("internal");
var arangodb = require("org/arangodb");
var _ = require("underscore");
var ShapedJson = internal.ShapedJson;
// -----------------------------------------------------------------------------
// --SECTION-- AQL test helper functions
@ -203,7 +204,10 @@ function typeName (value) {
if (value === undefined) {
return "undefined";
}
if (value instanceof Array) {
if (value instanceof ShapedJson) {
return "object";
}
if (Array.isArray(value)) {
return "array";
}