タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

rttsに関するJxckのブックマーク (1)

  • Assert.js

    Basic Type Check By default, instanceof is used to check the type. Note that you can use assert.type() in unit tests or anywhere in your code. Most of the time, you will use it with Traceur. Jump to the Traceur section to see an example of that. describe('basic type check', function() { class Type {} it('should pass', function() { assert.type(new Type(), Type); }); it('should fail', function() { e

    Jxck
    Jxck 2014/10/24
    Run-time Type Assertion ライブラリらしい(traceur 前提)
  • 1