Skip to content

feat(testing): add unit tests for register#2719

Merged
jsjoeio merged 22 commits into
masterfrom
add-tests-register
Feb 26, 2021
Merged

feat(testing): add unit tests for register#2719
jsjoeio merged 22 commits into
masterfrom
add-tests-register

Conversation

@jsjoeio

@jsjoeio jsjoeio commented Feb 12, 2021

Copy link
Copy Markdown
Contributor

This PR adds a few tests for src/browser/register.ts.

Screenshot

image

It increases our code coverage (Lines) from 50.09% to 51.13% (↑ 1.04%).
🟩 100% Line coverage (last 100) for src/browser/register.ts

image

TODOs

  • rebase branch onto master
  • address feedback
  • refactor based on Asher's suggestion
  • add test for else statement in register

@jsjoeio jsjoeio added this to the v3.8.2 milestone Feb 12, 2021
@jsjoeio jsjoeio self-assigned this Feb 12, 2021
@jsjoeio
jsjoeio marked this pull request as ready for review February 12, 2021 00:04
@jsjoeio
jsjoeio requested review from code-asher and oxy February 12, 2021 00:04
@jsjoeio
jsjoeio marked this pull request as draft February 12, 2021 16:43
@jsjoeio
jsjoeio marked this pull request as ready for review February 12, 2021 17:10

@oxy oxy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Your choice on if you want a second opinion from asher on this one; I'm not too confident in my TS just yet 😅

@jsjoeio

jsjoeio commented Feb 12, 2021

Copy link
Copy Markdown
Contributor Author

I'll play it safe since we're releasing today - @code-asher would love an 👀 on this one!

@jsjoeio jsjoeio modified the milestones: v3.9.0, v3.9.1 Feb 12, 2021
Comment thread test/util.test.ts
Comment thread src/browser/register.ts Outdated
Comment thread src/browser/register.ts Outdated
Comment thread package.json
@jsjoeio
jsjoeio marked this pull request as draft February 18, 2021 22:17
@jsjoeio
jsjoeio marked this pull request as ready for review February 18, 2021 23:57
Comment thread src/browser/register.ts Outdated
Comment thread test/emitter.test.ts
Comment thread test/register.test.ts Outdated
Comment thread test/register.test.ts Outdated
Comment thread test/register.test.ts Outdated
Comment thread src/browser/register.ts Outdated
@jsjoeio
jsjoeio marked this pull request as draft February 22, 2021 17:38
Base automatically changed from add-tests-emitter to master February 23, 2021 17:02
@jsjoeio
jsjoeio force-pushed the add-tests-register branch 2 times, most recently from 14ad29a to 909d425 Compare February 23, 2021 23:03
@jsjoeio
jsjoeio marked this pull request as ready for review February 23, 2021 23:27
Comment thread test/helpers.ts
Comment thread test/register.test.ts
@jsjoeio
jsjoeio requested review from a team and code-asher February 23, 2021 23:31
@jsjoeio
jsjoeio requested a review from a team as a code owner February 26, 2021 19:04
Comment thread test/emitter.test.ts Outdated
@jsjoeio
jsjoeio requested a review from code-asher February 26, 2021 23:00

@code-asher code-asher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!!

Comment thread test/register.test.ts Outdated
@jsjoeio

jsjoeio commented Feb 26, 2021

Copy link
Copy Markdown
Contributor Author

CI only failed due to #2480

@jsjoeio
jsjoeio merged commit 726f694 into master Feb 26, 2021
@jsjoeio
jsjoeio deleted the add-tests-register branch February 26, 2021 23:47
@jsjoeio jsjoeio added the testing Anything related to testing label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Anything related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants