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

zulip / zulip-mobile / 6982
47%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2018 08:38PM UTC
Jobs 1
Files 363
Run time 47s
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
6982

push

travis-ci

gnprice
compose: Remove unused drafts-related code

Using `componentWillReceiveProps` the way we did should not be
considered a best practice, and should not be used if better
options are available (there are other lifecycle events too).

We still need the `editMessage` comparison, though future rework
will make it not needed.

We don't need the `narrow` comparison though. It can never be true.
It used to be usable before, not anymore.

We get the prop down from several components. The hierarchy is:
ChatScreen > Chat > ComposeBox

ChatScreen gets the `narrow` value from the React Navigation's
`navigation.state.params`. This value does change only when a new
screen is created. So the same instance of the same screen will
never receive a different value. This comparison will always produce
`false`. Removing it!

This was confirmed both theoretically by analysing the code thoroughly
and empirically by putting a `console.log` and navigating between many
different narrows in different ways.

1002 of 2093 branches covered (47.87%)

Branch coverage included in aggregate %.

1953 of 3799 relevant lines covered (51.41%)

50.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6982.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 24 Sep 2018 08:38PM UTC 0
50.15
Travis Job 6982.1
Source Files on build 6982
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6982
  • 471da4f0 on github
  • Prev Build on master (#3519)
  • Next Build on master (#6984)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc