• This project
    • Loading...
  • Sign in

강현준 / RTC

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • RTC
  • node_modules
  • component-inherit
  • test
  • inherit.js
  • 강현준's avatar
    first commit · 54df592f
    54df592f
    강현준 authored 2017-12-03 21:10:06 +0900
inherit.js 385 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

/**
 * 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);
  })
})