]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blob - example/iot-gateway/node_modules/component-inherit/test/inherit.js
Updated to use the latest TI 15.4-Stack v2.1.0 from the SimpleLink CC13x0 SDK v1.30.
[apps/tidep0084.git] / example / iot-gateway / node_modules / component-inherit / test / inherit.js
2 /**
3  * Module dependencies.
4  */
6 var inherit = require('..');
8 describe('inherit(a, b)', function(){
9   it('should inherit b\'s prototype', function(){
10     function Loki(){}
11     function Animal(){}
13     Animal.prototype.species = 'unknown';
15     inherit(Loki, Animal);
17     var loki = new Loki;
18     loki.species.should.equal('unknown');
19     loki.constructor.should.equal(Loki);
20   })
21 })