Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase unit test coverage in the dom file 🧪 #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

borodovisin
Copy link

@borodovisin borodovisin commented Apr 18, 2022

Description

The PR increases the test coverage over the dom.js file. Do not cover all the code in the file, it's the first iteration of increasing the coverage

Why are we making these changes?

To increase the coverage gradually.

Caveats

In my case, I do not find a clean way to test asynchronous code using karma/mocha env. Meaning the test trying to assert something inside a then response from ZalgoPromise is not a good idea and a bad practice. If the Promise does not resolve we aren't able to execute the assertion.

@borodovisin borodovisin requested a review from a team as a code owner April 18, 2022 20:35
@borodovisin borodovisin changed the title Dtppsdk 721/dom test Increase unit test coverage in the dom file 🧪 Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants