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

chore: refactored test save-paginator-status.spec.js #1876

Merged
merged 1 commit into from
May 18, 2021
Merged

chore: refactored test save-paginator-status.spec.js #1876

merged 1 commit into from
May 18, 2021

Conversation

iamayushdas
Copy link
Contributor

Please answer these questions before submitting a pull request, or your PR will get closed.

Why submit this pull request?

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Refactor

What changes will this PR take into?

Refactor Testcase for Frontend.

Related issues

related issue #1774

Checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@netlify
Copy link

netlify bot commented May 8, 2021

Deploy preview for apisix-dashboard ready!

Built with commit c874546

https://deploy-preview-1876--apisix-dashboard.netlify.app

@codecov-commenter
Copy link

Codecov Report

Merging #1876 (c874546) into master (b1e66a2) will increase coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1876      +/-   ##
==========================================
+ Coverage   72.10%   72.17%   +0.06%     
==========================================
  Files         125      125              
  Lines        2947     2947              
  Branches      711      711              
==========================================
+ Hits         2125     2127       +2     
+ Misses        822      820       -2     
Flag Coverage Δ
frontend-e2e-test 72.17% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
web/src/helpers.tsx 72.13% <0.00%> (+3.27%) ⬆️

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 b1e66a2...c874546. Read the comment docs.

@@ -42,57 +55,57 @@ context('Save Paginator Status', () => {
},
body: {
upstream: {
nodes: {"39.97.63.215:80": 1},
timeout: {connect: 6, read: 6, send: 6},
nodes: { '39.97.63.215:80': 1 },
Copy link
Contributor

Choose a reason for hiding this comment

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

it would be better to define the whole body as a test data

@liuxiran liuxiran merged commit 64060cd into apache:master May 18, 2021
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.

6 participants