more unit tests

This commit is contained in:
Klemek
2019-07-15 11:07:50 +02:00
parent 3c912e38db
commit e4124f91c4
+5
View File
@@ -24,4 +24,9 @@ test('test fail placing', () => {
} catch (err) {
expect(err).toBe('Failed to place nodes');
}
});
test('no data', () => {
const res = faDiagrams.compute({});
expect(res).toEqual('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 0 0" width="0" height="0"></svg>');
});