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

add specs for update method and value watcher #1776

Conversation

coreycosman
Copy link
Contributor

@coreycosman coreycosman commented Dec 23, 2018

Closes #1774

Description:

added specs for update method and value watcher- test coverage to 100% for this file.

❤️ Thank you!


  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer

@codecov
Copy link

codecov bot commented Dec 23, 2018

Codecov Report

Merging #1776 into develop will increase coverage by 0.12%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1776      +/-   ##
===========================================
+ Coverage    97.72%   97.85%   +0.12%     
===========================================
  Files          103      102       -1     
  Lines         2110     2096      -14     
  Branches        92       93       +1     
===========================================
- Hits          2062     2051      -11     
+ Misses          39       37       -2     
+ Partials         9        8       -1
Impacted Files Coverage Δ
app/src/root.js 100% <0%> (ø) ⬆️
app/src/renderer/connectors/lcdClientMock.js 99.19% <0%> (ø) ⬆️
...p/src/renderer/vuex/modules/governance/deposits.js 100% <0%> (ø) ⬆️
.../renderer/components/governance/PageGovernance.vue 100% <0%> (ø) ⬆️
...rc/renderer/components/governance/PageProposal.vue 100% <0%> (ø) ⬆️
.../renderer/components/governance/TableProposals.vue 100% <0%> (ø) ⬆️
.../src/renderer/components/staking/PageValidator.vue 100% <0%> (ø) ⬆️
app/src/renderer/vuex/store.js 100% <0%> (ø) ⬆️
...pp/src/renderer/components/staking/PageStaking.vue 100% <0%> (ø) ⬆️
.../src/renderer/components/governance/LiProposal.vue 100% <0%> (ø) ⬆️
... and 3 more

2 similar comments
@codecov
Copy link

codecov bot commented Dec 23, 2018

Codecov Report

Merging #1776 into develop will increase coverage by 0.12%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1776      +/-   ##
===========================================
+ Coverage    97.72%   97.85%   +0.12%     
===========================================
  Files          103      102       -1     
  Lines         2110     2096      -14     
  Branches        92       93       +1     
===========================================
- Hits          2062     2051      -11     
+ Misses          39       37       -2     
+ Partials         9        8       -1
Impacted Files Coverage Δ
app/src/root.js 100% <0%> (ø) ⬆️
app/src/renderer/connectors/lcdClientMock.js 99.19% <0%> (ø) ⬆️
...p/src/renderer/vuex/modules/governance/deposits.js 100% <0%> (ø) ⬆️
.../renderer/components/governance/PageGovernance.vue 100% <0%> (ø) ⬆️
...rc/renderer/components/governance/PageProposal.vue 100% <0%> (ø) ⬆️
.../renderer/components/governance/TableProposals.vue 100% <0%> (ø) ⬆️
.../src/renderer/components/staking/PageValidator.vue 100% <0%> (ø) ⬆️
app/src/renderer/vuex/store.js 100% <0%> (ø) ⬆️
...pp/src/renderer/components/staking/PageStaking.vue 100% <0%> (ø) ⬆️
.../src/renderer/components/governance/LiProposal.vue 100% <0%> (ø) ⬆️
... and 3 more

@codecov
Copy link

codecov bot commented Dec 23, 2018

Codecov Report

Merging #1776 into develop will increase coverage by 0.12%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1776      +/-   ##
===========================================
+ Coverage    97.72%   97.85%   +0.12%     
===========================================
  Files          103      102       -1     
  Lines         2110     2096      -14     
  Branches        92       93       +1     
===========================================
- Hits          2062     2051      -11     
+ Misses          39       37       -2     
+ Partials         9        8       -1
Impacted Files Coverage Δ
app/src/root.js 100% <0%> (ø) ⬆️
app/src/renderer/connectors/lcdClientMock.js 99.19% <0%> (ø) ⬆️
...p/src/renderer/vuex/modules/governance/deposits.js 100% <0%> (ø) ⬆️
.../renderer/components/governance/PageGovernance.vue 100% <0%> (ø) ⬆️
...rc/renderer/components/governance/PageProposal.vue 100% <0%> (ø) ⬆️
.../renderer/components/governance/TableProposals.vue 100% <0%> (ø) ⬆️
.../src/renderer/components/staking/PageValidator.vue 100% <0%> (ø) ⬆️
app/src/renderer/vuex/store.js 100% <0%> (ø) ⬆️
...pp/src/renderer/components/staking/PageStaking.vue 100% <0%> (ø) ⬆️
.../src/renderer/components/governance/LiProposal.vue 100% <0%> (ø) ⬆️
... and 3 more

@codecov
Copy link

codecov bot commented Dec 23, 2018

Codecov Report

❗ No coverage uploaded for pull request base (develop@d33ce3a). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #1776   +/-   ##
==========================================
  Coverage           ?   97.85%           
==========================================
  Files              ?      102           
  Lines              ?     2096           
  Branches           ?       93           
==========================================
  Hits               ?     2051           
  Misses             ?       37           
  Partials           ?        8

@coreycosman coreycosman reopened this Dec 23, 2018
@@ -1,6 +1,8 @@
import { mount } from "@vue/test-utils"
import htmlBeautify from "html-beautify"
import TmFieldSeed from "common/TmFieldSeed"
import autosize from "autosize"
const spy = jest.spyOn(autosize, `update`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should probably go into a beforeEach to prevent side effects from others tests.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or just into the according test.

@faboweb
Copy link
Collaborator

faboweb commented Jan 8, 2019

Ping @coreycosman

@jbibla
Copy link
Collaborator

jbibla commented Jan 8, 2019

i messaged him - he may be travelling / on vacation.

@fedekunze fedekunze changed the title add specs for update method and value watcher WIP: add specs for update method and value watcher Jan 8, 2019
faboweb
faboweb previously approved these changes Jan 8, 2019
@faboweb faboweb changed the title WIP: add specs for update method and value watcher add specs for update method and value watcher Jan 8, 2019
@fedekunze
Copy link
Contributor

unit tests failing

@coreycosman
Copy link
Contributor Author

coreycosman commented Jan 16, 2019

do you have any idea why e2e test # 42 - line 198 of test/e2e/signin.js would have broken because of the unit tests I wrote? I do not quite understand how my tests are affecting the e2e tests, or how to correct this error. Any help is greatly appreciated.

@faboweb
Copy link
Collaborator

faboweb commented Jan 16, 2019

E2E tests are sometimes unreliable because of async problems. If your unit tests run fine, I will make the PR pass.

@coreycosman
Copy link
Contributor Author

coreycosman commented Jan 16, 2019 via email

@faboweb
Copy link
Collaborator

faboweb commented Jan 16, 2019

Unit tests are broken:
https://circleci.com/gh/cosmos/voyager/13966

@coreycosman
Copy link
Contributor Author

please see my most recent PR

@fedekunze
Copy link
Contributor

I will close this then, let's use the other PR

@fedekunze fedekunze closed this Jan 16, 2019
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.

4 participants