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

NGCP / communication-js / 54 / 1
98%
master: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/types/sinon-10.0.2
DEFAULT BRANCH: master
Ran 05 Mar 2020 11:19AM UTC
Files 1
Run time 0s
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

05 Mar 2020 11:19AM UTC coverage: 95.833%. First build
54.1

push

travis-ci-com

Luis729
Add dependencies and typings for mock testing

 ## Why is the change being made?

This change is made because it is important to perform unit testing on
the XBee and Messenger classes to make sure they function properly. In
order to do this, the MockBinding class from `serialport` must be used.

 ## What has changed to address the problem?

This change performs multiple changes in order to add the MockBinding
class to the project:
1. Adds dependencies to `@serialport/stream`
`@serialport/binding-abstract` and `@serial/binding-mock`, and create
typings for each package (the website had the typings already but had no
file associated with it).
2. Moved new/existing package declaration files (.d.ts) to the following
filepath: `typings/package-name/index.d.ts`. Also added `paths` field to
`tsconfig.json` to point each package to its respective declaration
file.
3. Removed `test` in list of folders in `exclude` field in
`tsconfig.json`. This is to let files in `test` to access declaration
files under `typings`. The `main` and `types` fields are updated in
`package.json`.

Minor changes:
1. Removed `dist` and added instructions to build package before linking
it to README.
2. Minor refactoring in `XBee.ts` to make code more legible.

 ## How was this change tested?

This change was tested with `npm test`.

 ## Related documents, URLs, commits

16 of 18 branches covered (88.89%)

Branch coverage included in aggregate %.

30 of 30 relevant lines covered (100.0%)

11.77 hits per line

Source Files on job 54.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 53
  • Travis Job 54.1
  • b3447768 on github
  • Next Job for on mock-testing (#60.1)
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