changed CI to fail on test fail (+failing test)
This commit is contained in:
+1
-1
@@ -14,5 +14,5 @@ install:
|
|||||||
- npm install
|
- npm install
|
||||||
- node build.js
|
- node build.js
|
||||||
script:
|
script:
|
||||||
- jest --silent --coverage --coverageReporters=text-lcov | coveralls
|
- jest --silent --coverage --coverageReporters=text-lcov && cat ./coverage/lcov.info | coveralls
|
||||||
- jshint ./src
|
- jshint ./src
|
||||||
@@ -104,6 +104,6 @@ describe('toXML', () => {
|
|||||||
describe('compute', () => {
|
describe('compute', () => {
|
||||||
test('no nodes no links', () => {
|
test('no nodes no links', () => {
|
||||||
const res = rendering({beautify: true}).compute({}, []);
|
const res = rendering({beautify: true}).compute({}, []);
|
||||||
expect(res).toEqual('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 0 0">\n</svg>');
|
expect(res).toEqual('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 0 0">\n\n</svg>');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user