updated unit tests

This commit is contained in:
Klemek
2019-07-16 10:38:13 +02:00
parent f180c4e559
commit 91e57fb959
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -407,7 +407,7 @@ describe('compute', () => {
}, []);
fail('no error thrown');
} 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', () => {
@@ -415,7 +415,7 @@ describe('compute', () => {
placing().compute({}, [{from: 'a', to: 5}]);
fail('no error thrown');
} 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', () => {
+2 -2
View File
@@ -149,7 +149,7 @@ describe('compute', () => {
}, []);
fail('no error thrown');
} 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', () => {
@@ -157,7 +157,7 @@ describe('compute', () => {
rendering().compute({}, [{from: 'a', to: 'b', type: 5}]);
fail('no error thrown');
} 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');
}
});
});