Skip to content
This repository was archived by the owner on Dec 31, 2019. It is now read-only.
This repository was 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

Description

@subtubes-io

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions