• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

strongloop / loopback-next / 18243
76%

Build:
DEFAULT BRANCH: master
Ran 13 May 2020 03:16PM UTC
Jobs 1
Files 636
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
18243

push

travis-ci-com

raymondfeng
chore: fix code that leads to TS2783: 'id' is specified more than once

TypeScript 3.9.x reports an error for
`expect(toJSON(created)).to.deepEqual({id: response.body.id, ...expected});`
with the following reasoning:

1. The inferred type of `expected` has an `id` (non-optional) property.
2. The spread assignment has overriding property `id` from the 1st and 2nd
   argument.
3. The TS compiler think the 1st `id` will be ALWAYS overridden and
   it is probably a bug in the code.
4. In our case, `expected.id` is not defined when it's instantiated from
   `Todo` class without `create`. Please note the `Todo.prototype.id` is
   NOT marked as optional.

5394 of 6349 branches covered (84.96%)

Branch coverage included in aggregate %.

14673 of 15442 relevant lines covered (95.02%)

1103.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18243.1 (TASK=test) 13 May 2020 03:16PM UTC 0
92.09
Travis Job 18243.1
Source Files on build 18243
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #18243
  • 2dee7d4c on github
  • Prev Build on master (#18240)
  • Next Build on master (#18244)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc