karma-remap-istanbul icon indicating copy to clipboard operation
karma-remap-istanbul copied to clipboard

Classes having one static method or having no methods at all are uncovered

Open zsoltvad opened this issue 7 years ago • 1 comments

screen shot 2017-03-21 at pm 7 46 24 screen shot 2017-03-21 at pm 7 48 46

zsoltvad avatar Mar 21 '17 18:03 zsoltvad

In order to provide test coverage for these lines, we need to create unit tests like this:

it( 'could be instantiated', () => {
	let browserErrors = new BrowserErrors();
	expect( browserErrors instanceof BrowserErrors ).toBe( true );
} );

This should not be the case.

mezoistvan avatar Mar 22 '17 09:03 mezoistvan