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

NGCP / communication-js / 54
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
Jobs 1
Files 1
Run time 1s
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
54

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

Jobs
ID Job ID Ran Files Coverage
1 54.1 05 Mar 2020 11:19AM UTC 0
95.83
Travis Job 54.1
Source Files on build 54
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #54
  • b3447768 on github
  • Next Build on mock-testing (#60)
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