Sha256: 5a677cde1c6e6966502f9c9105ffcce36551f3c2e8805dbed52d9b352c8b945e
Contents?: true
Size: 385 Bytes
Versions: 92
Compression:
Stored size: 385 Bytes
Contents
/** * Module dependencies. */ var inherit = require('..'); describe('inherit(a, b)', function(){ it('should inherit b\'s prototype', function(){ function Loki(){} function Animal(){} Animal.prototype.species = 'unknown'; inherit(Loki, Animal); var loki = new Loki; loki.species.should.equal('unknown'); loki.constructor.should.equal(Loki); }) })
Version data entries
92 entries across 92 versions & 4 rubygems