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

gnosis / dex-js / 649 / 1
77%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: develop
Ran 25 May 2020 09:34AM UTC
Files 16
Run time 4s
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

25 May 2020 09:32AM UTC coverage: 75.252% (+4.0%) from 71.29%
649.1

push

travis-ci

web-flow
Format Smart (#149)

* Function: formatSmart

* tests

* lock

* Tests: renamed file + fixed tests

* Constants: added some, moved some

1. added BN constants used in smart

* Format: changed core formatSmart logic

1. removed Intl library dependency
2. optimised as much as possible ;)

* Fixed constant names (consistency) + comment

* test comments

* fraction => decimals & pass constants in

* Many PR review fixes

1. pass constants directly into fns when necessary
2. remove unused params
3. remove unsused options
4. change some if/else statements to use single if, when necessary
5. explicit .toString(10)

* handle division math with BigNumber

1. dont use BN and precision math

* change DEFAULT_SMALL_LIMIT to string

1. let fn handle conversion to BigNumber

* if ZERO return '0'

Co-authored-by: Leandro Boscariol <alfetopito@users.noreply.github.com>

* PR fix concerning decimal/integer format

Co-authored-by: Leandro Boscariol <alfetopito@users.noreply.github.com>

116 of 167 branches covered (69.46%)

Branch coverage included in aggregate %.

258 of 330 relevant lines covered (78.18%)

12.72 hits per line

Source Files on job 649.1
  • Tree
  • List 0
  • Changed 16
  • Source Changed 2
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 569
  • Travis Job 649.1
  • 6b8a0996 on github
  • Prev Job for on master (#631.1)
  • Next Job for on master (#652.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