Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Fix integration tests #300

Merged
merged 1 commit into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ If you want to run integration tests locally, make sure your setup meets the
following requirements:

- A local Neo4J instance with username `neo4j` and password `letmein`
- APOC plugin installed (see instructions [here](https://github.com/neo4j-contrib/neo4j-apoc-procedures#installation-with-neo4j-desktop))
- Your Neo4J instance runs on [this database](https://s3.amazonaws.com/neo4j-sandbox-usecase-datastores/v3_5/recommendations.db.zip)

In order to import the database, you can download the zipped files and extract
Expand Down
62 changes: 31 additions & 31 deletions test/integration/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test('basic GraphQL query', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -119,7 +119,7 @@ test('GraphQL query with @cypher directive', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -168,7 +168,7 @@ test('Handle @cypher directive on QueryType', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -198,7 +198,7 @@ test('Mutation with @cypher directive (not-isolated)', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -243,7 +243,7 @@ test('Create node mutation (not-isolated)', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -275,7 +275,7 @@ test('Update node mutation', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -344,7 +344,7 @@ test.serial('Add relationship mutation (not-isolated)', async t => {
//t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -384,7 +384,7 @@ test.serial('Remove relationship mutation (not-isolated)', async t => {
t.is(data.data.RemoveMovieGenres.from.genres.length, 3);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand All @@ -405,7 +405,7 @@ test('Delete node mutation', async t => {
//
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});

await client
Expand All @@ -422,7 +422,7 @@ test('Delete node mutation', async t => {
t.is(data.data.Movie.length, 0);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});
// TODO: mutation with variables
Expand Down Expand Up @@ -508,7 +508,7 @@ test('Top level orderBy', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -564,7 +564,7 @@ test('query relationship property data', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -604,7 +604,7 @@ test('query using inine fragment', async t => {
t.deepEqual(data.data.Movie[0].ratings[0], expected);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -657,7 +657,7 @@ test.serial(
t.deepEqual(data, expected);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -724,7 +724,7 @@ test.serial(
t.deepEqual(data, expected);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -800,7 +800,7 @@ test.serial(
t.deepEqual(data, expected);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -882,7 +882,7 @@ test.serial(
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -920,7 +920,7 @@ test.serial(
t.deepEqual(data, expected);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -960,7 +960,7 @@ test.serial(
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -1000,7 +1000,7 @@ test.serial(
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -1044,7 +1044,7 @@ test.serial(
t.deepEqual(data, expected);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -1095,7 +1095,7 @@ test.serial(
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -1152,7 +1152,7 @@ test('Basic filter', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -1187,7 +1187,7 @@ test.before(
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
}
);
Expand Down Expand Up @@ -1224,7 +1224,7 @@ test('Basic filter using Apollo generated filters underscore test', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -1263,7 +1263,7 @@ test('Filter with AND', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -1328,7 +1328,7 @@ test('Filter with OR', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -1636,7 +1636,7 @@ test('Filter with nested AND and OR', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -1835,7 +1835,7 @@ test('Filter in selection', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -1894,7 +1894,7 @@ test('Nested filter', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});

Expand Down Expand Up @@ -1957,6 +1957,6 @@ test('Filter with GraphQL variable', async t => {
t.deepEqual(data.data, expected.data);
})
.catch(error => {
t.fail(error);
t.fail(error.message);
});
});