Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

test(VoiceConnection): add unit tests#80

Merged
amishshah merged 16 commits into
mainfrom
feat/voice-connection-tests
Mar 17, 2021
Merged

test(VoiceConnection): add unit tests#80
amishshah merged 16 commits into
mainfrom
feat/voice-connection-tests

Conversation

@amishshah
Copy link
Copy Markdown
Member

@amishshah amishshah commented Mar 16, 2021

Please describe the changes this PR makes and why it should be merged:

Implements unit tests for the most important functionality within VoiceConnection. Also includes a minor fix (automatic reconnects done by the library never incremented reconnectAttempts, only manual reconnects by the user did)

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2021

Codecov Report

Merging #80 (1b8dc67) into main (e475b07) will increase coverage by 14.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #80       +/-   ##
===========================================
+ Coverage   29.69%   43.73%   +14.04%     
===========================================
  Files          15       15               
  Lines         596      599        +3     
  Branches      132      132               
===========================================
+ Hits          177      262       +85     
+ Misses        417      335       -82     
  Partials        2        2               
Impacted Files Coverage Δ
src/VoiceConnection.ts 80.95% <100.00%> (+80.95%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e475b07...1b8dc67. Read the comment docs.

@amishshah amishshah marked this pull request as ready for review March 16, 2021 22:36
Copy link
Copy Markdown
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

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

wow

@amishshah amishshah merged commit 6984c32 into main Mar 17, 2021
@amishshah amishshah deleted the feat/voice-connection-tests branch March 17, 2021 08:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants