Skip to content

cover code for kIsWeb condition true and false both cases #523

Open
@kaushikbh99

Description

@kaushikbh99

In my case, I have developed apps for mobile and web both cases in one project,
Now I write unit cases and set for code coverage, but in my case kIsWeb condition does not check both cases,
e.g.
if(kIsWeb){
// for web app
}else{
// for non-web app
}

so in this type of case not cover for web part, only covers for non-web app part
My question is how can I cover both cases for unit testing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions