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

opengovsg / formsg-javascript-sdk / 262 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 11 Jun 2020 07:16AM UTC
Files 20
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

11 Jun 2020 07:15AM UTC coverage: 95.775% (+0.7%) from 95.062%
262.1

push

travis-ci-com

web-flow
refactor: update crypto HOF to Crypto class (#36)

* feat: add util/crypto.ts for helper methods used by new Crypto class

* feat: rewrite crypto.ts functions as Crypto class and use in init

* feat: update thrown error name in JSDoc of Webhook.authenticate

* test(Crypto): update tests to use new class based instantiation

* refactor(Crypto): change constructor to optional `publicSigningKey`

Instead of `publicKey`, `publicSigningKey` makes it more obvious of what the use of the key is for.
Making constructor optional also allows users of the library to encrypt and decrypt without having to provide a public signing key if they do not want to and still be able to decrypt content without verified fields.

Note that the default package initialisation still instantiates the library with a fallback key.

* refactor: allow optional constructor params

* test(Crypto): add tests for 100% coverage

* refactor: update import order

* test: remove misleading comment

75 of 86 branches covered (87.21%)

Branch coverage included in aggregate %.

265 of 269 relevant lines covered (98.51%)

4.27 hits per line

Source Files on job 262.1
  • Tree
  • List 0
  • Changed 16
  • Source Changed 4
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 72
  • Travis Job 262.1
  • f0acd09d on github
  • Prev Job for on master (#258.1)
  • Next Job for on master (#265.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