more unit tests
This commit is contained in:
@@ -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>');
|
||||
});
|
||||
Reference in New Issue
Block a user