ohif-viewer/Packages/ohif-viewerbase/tests/coverage/exportCoverageReport.js
André Botelho Almeida bf68707ff2 Feature/test suite (#169)
* Adding first run of the test environment

* small tweaks

* Fixing tests suite to ohif-viewer

* Improving documentation and fixing versions

* Removing commented lines
2018-03-27 11:50:40 +02:00

21 lines
787 B
JavaScript

import { Meteor } from 'meteor/meteor';
import { chai } from 'meteor/practicalmeteor:chai';
import ReportService from 'meteor/lmieulet:meteor-coverage'
chai.should();
describe('Exporting coverage report', function() {
it('Generating coverage report', function() { });
after(function() {
const reportService = new ReportService.ReportService();
const mockRes = { end: () => { }, writeHead: () => { } };
// The possible reports
// Check https://github.com/serut/meteor-coverage
reportService.generateReport(mockRes, 'text-summary', {});
reportService.generateReport(mockRes, 'html', {});
reportService.generateReport(mockRes, 'json-summary', {});
reportService.generateReport(mockRes, 'lcovonly', {});
});
});