1
0
Fork 0

Added some more tests for gharial adapter

This commit is contained in:
Michael Hackstein 2014-06-26 09:06:20 +02:00
parent c52c9d3a35
commit 68147bb32b
1 changed files with 19 additions and 1 deletions

View File

@ -325,6 +325,24 @@
).toThrow("A reference to the graph viewer has to be given.");
});
it('should throw an error if no config is given', function() {
expect(
function() {
var t = new GharialAdapter([], [], viewer);
return t;
}
).toThrow("A configuration with graphName has to be given.");
});
it('should throw an error if the config does not contain graphName', function() {
expect(
function() {
var t = new GharialAdapter([], [], viewer, {});
return t;
}
).toThrow("The graphname has to be given.");
});
it('should not throw an error if everything is given', function() {
expect(
function() {
@ -389,7 +407,7 @@
jasmine.any(Function)
);
});
describe('setup correctly', function() {
var traversalQuery,