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

tj / co / 225
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: feat/ch13
DEFAULT BRANCH: master
Ran 13 Sep 2018 05:14AM UTC
Jobs 4
Files 1
Run time 23s
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
225

Pull #327

travis-ci

web-flow
adding ability to pass classical inhertiance object

adding ability to pass classical inhertiance object

```
co(function* () {
  function Human(name, age) {
    this.name = name;
    this.age = age;
  }

  Human.prototype.getName = function() {
    return this.name;
  };

  Human.prototype.getAge = function() {
    return this.age;
  }

  let Asian = function(name, age) {
    Human.call(this, name, age);
    this.country = 'Brunei';
  }

  Asian.prototype = Object.create(Human.prototype);

  let agus = new Asian('Agus', 29);

  let res = yield agus;
  console.log(typeof res);
  console.log(res); // { name: 'Agus', age: 29, country: 'Brunei' }
  console.log(res.getName()); // Agus
  console.log(res.country); // brunei
})
.catch(function(e) {
  console.log(e);
});

```
Pull Request #327: adding ability to pass classical inheritance object

43 of 44 branches covered (97.73%)

1 of 1 new or added line in 1 file covered. (100.0%)

75 of 75 relevant lines covered (100.0%)

159.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 225.1 13 Sep 2018 05:14AM UTC 0
100.0
Travis Job 225.1
2 225.2 13 Sep 2018 05:14AM UTC 0
100.0
Travis Job 225.2
3 225.3 13 Sep 2018 05:14AM UTC 0
100.0
Travis Job 225.3
4 225.4 13 Sep 2018 05:14AM UTC 0
100.0
Travis Job 225.4
Source Files on build 225
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #225
  • Pull Request #327
  • PR Base - master (#210)
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

© 2025 Coveralls, Inc