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

got 2 test case failed in unit test #315

Open
JohnieXu opened this issue Jul 12, 2023 · 1 comment
Open

got 2 test case failed in unit test #315

JohnieXu opened this issue Jul 12, 2023 · 1 comment
Labels

Comments

@JohnieXu
Copy link

  1. pull the latest master branch, commit_id is 9d20d580e648c63c3a2e83a3285aed0d609b0a3f
  2. run npm run prepare
  3. run npm run dist
  4. then there are two test cases that failed, the details are as follows.
  68 passed
  2 failed

  set-base-url › changes the headers

  /Users/johniexu/Documents/github/apisauce/test/set-base-url.test.js:39

   38:   const response3 = await api.get('/number/200')
   39:   t.is(response3.problem, 'CONNECTION_ERROR')   
   40: })                                              

  Difference:

  - 'SERVER_ERROR'
  + 'CONNECTION_ERROR'
no-server › has a response despite no server

  /Users/johniexu/Documents/github/apisauce/test/no-server.test.js:13

   12:   return x.get('/number/200', { a: 'b' }).then(response => {
   13:     t.is(response.status, null)                             
   14:     t.is(response.problem, CONNECTION_ERROR)                

  Difference:

  - 502
  + null

my device infos are as follows:

  1. Node.js: v16.13.1
  2. OS: macOS 10.15.7
@jamonholmgren
Copy link
Member

This will be fixed with #314.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants