Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Coverage is correct if function is a set as a dot property but not when set directly in an object literal #109

Open
subtubes-io opened this issue Feb 10, 2016 · 0 comments

Comments

@subtubes-io
Copy link

If my function is set as a 'dot' object property i.e.

var x = {};
x.myFn = function myFn() {//do something }

then the coverage report will be correct

if I set the property in the object literal it is wrong i.e.

var x = {myFn: function myFn() {//do something }};

the above example will not show up correctly in the coverage report

here is an image of my report

coverage report

I tested this quite a bit. Not sure why it is so. If need be I can create a sample repo for you to test out on.

I am using "isparta": "^4.0.0", in my package.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant