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]] Test under node 8 #16

Closed
wants to merge 1 commit into from
Closed

[[CHORE]] Test under node 8 #16

wants to merge 1 commit into from

Conversation

jmendiara
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented May 31, 2017

Coverage Status

Coverage remained the same at 96.552% when pulling 2502004 on jmendiara-patch-1 into d64fa16 on master.

jmendiara added a commit that referenced this pull request Feb 26, 2018
V8 shipped with node8 break our test and reported a `this.name` inside
a ServerError instantiation, resulting in setting the name for a
NotFoundError to something like `NotFound.Error`

More info

```
  1) Therror when using ServerError should have precreated classes for statusCodes:

      AssertionError: expected { Object (error, message) } to deeply equal { Object (error, message) }
      + expected - actual

       {
      -  "error": "NotFound.Error"
      +  "error": "NotFound"
         "message": "The user Sarah does not exists"
       }

      at Context.<anonymous> (test/therror.spec.js:584:37)

  2) Therror when using ServerError should hide information to the client:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:603:30)

  3) Therror when using ServerError should set string as message for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:616:30)

  4) Therror when using ServerError should set string as cause for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:629:30)

  5) Therror when using ServerError should set Number as message for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:643:30)

  6) Therror when using ServerError should set Number as cause for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:656:30)

```

Closes #16
jmendiara added a commit that referenced this pull request Feb 26, 2018
V8 shipped with node8 break our test and reported a `this.name` inside
a ServerError instantiation, resulting in setting the name for a
NotFoundError to something like `NotFound.Error`

More info

```
  1) Therror when using ServerError should have precreated classes for statusCodes:

      AssertionError: expected { Object (error, message) } to deeply equal { Object (error, message) }
      + expected - actual

       {
      -  "error": "NotFound.Error"
      +  "error": "NotFound"
         "message": "The user Sarah does not exists"
       }

      at Context.<anonymous> (test/therror.spec.js:584:37)

  2) Therror when using ServerError should hide information to the client:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:603:30)

  3) Therror when using ServerError should set string as message for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:616:30)

  4) Therror when using ServerError should set string as cause for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:629:30)

  5) Therror when using ServerError should set Number as message for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:643:30)

  6) Therror when using ServerError should set Number as cause for ServerError:

      AssertionError: expected 'ServiceUnavailable.Error' to deeply equal 'ServiceUnavailable'
      + expected - actual

      -ServiceUnavailable.Error
      +ServiceUnavailable

      at Context.<anonymous> (test/therror.spec.js:656:30)

```

Closes #16
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.

None yet

2 participants