updated unit tests
This commit is contained in:
@@ -407,7 +407,7 @@ describe('compute', () => {
|
|||||||
}, []);
|
}, []);
|
||||||
fail('no error thrown');
|
fail('no error thrown');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
expect(err).toBe('node \'a\' is invalid at key x');
|
expect(err).toBe('Node \'a\' is invalid at key x');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
test('invalid link', () => {
|
test('invalid link', () => {
|
||||||
@@ -415,7 +415,7 @@ describe('compute', () => {
|
|||||||
placing().compute({}, [{from: 'a', to: 5}]);
|
placing().compute({}, [{from: 'a', to: 5}]);
|
||||||
fail('no error thrown');
|
fail('no error thrown');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
expect(err).toBe('link 0 (a->5) is invalid at key to');
|
expect(err).toBe('Link 0 (a->5) is invalid at key to');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
test('3 nodes no link', () => {
|
test('3 nodes no link', () => {
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ describe('compute', () => {
|
|||||||
}, []);
|
}, []);
|
||||||
fail('no error thrown');
|
fail('no error thrown');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
expect(err).toBe('node \'a\' is invalid at key icon');
|
expect(err).toBe('Node \'a\' is invalid at key icon');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
test('invalid link', () => {
|
test('invalid link', () => {
|
||||||
@@ -157,7 +157,7 @@ describe('compute', () => {
|
|||||||
rendering().compute({}, [{from: 'a', to: 'b', type: 5}]);
|
rendering().compute({}, [{from: 'a', to: 'b', type: 5}]);
|
||||||
fail('no error thrown');
|
fail('no error thrown');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
expect(err).toBe('link 0 (a->b) is invalid at key type');
|
expect(err).toBe('Link 0 (a->b) is invalid at key type');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user