Skip to content

Commit fbec75d

Browse files
mpv1989pluma
authored andcommitted
Disable view tests for ArangoDB 3.3 (#563)
1 parent 15ab454 commit fbec75d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/test/24-accessing-views.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import { Database } from "../arangojs";
33
import { ArangoSearchView } from "../view";
44

55
const range = (n: number): number[] => Array.from(Array(n).keys());
6+
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30400);
7+
const describe34 = ARANGO_VERSION >= 30400 ? describe : describe.skip;
68

7-
describe("Accessing views", function() {
9+
describe34("Accessing views", function() {
810
// create database takes 11s in a standard cluster
911
this.timeout(20000);
1012

src/test/25-view-metadata.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { expect } from "chai";
22
import { Database } from "../arangojs";
33
import { ArangoSearchView } from "../view";
44

5-
describe("View metadata", function() {
5+
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30400);
6+
const describe34 = ARANGO_VERSION >= 30400 ? describe : describe.skip;
7+
8+
describe34("View metadata", function() {
69
// create database takes 11s in a standard cluster
710
this.timeout(20000);
811

src/test/26-manipulating-views.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { Database } from "../arangojs";
33
import { ArangoSearchView } from "../view";
44

55
const ARANGO_VERSION = Number(process.env.ARANGO_VERSION || 30400);
6+
const describe34 = ARANGO_VERSION >= 30400 ? describe : describe.skip;
67

7-
describe("Manipulating views", function() {
8+
describe34("Manipulating views", function() {
89
// create database takes 11s in a standard cluster
910
this.timeout(20000);
1011

0 commit comments

Comments
 (0)