• Jump To … +
    assert_Array.litcoffee assert_Boolean.litcoffee assert_Function.litcoffee assert_Number.litcoffee assert_Object.litcoffee assert_String.litcoffee fluentnode.coffee index.md Array.litcoffee Boolean.litcoffee Function.litcoffee Number.litcoffee Object.litcoffee String.litcoffee console.litcoffee crypto.litcoffee fs.litcoffee http.GET.litcoffee http.POST.litcoffee http.Server.litcoffee http.litcoffee path.litcoffee process.litcoffee encoding.litcoffee globals.litcoffee assert_Array.test.coffee assert_Boolean.test.coffee assert_Function.test.coffee assert_Number.test.coffee assert_Object.test.coffee assert_String.test.coffee fluentnode.test.coffee Array.test.coffee Boolean.test.coffee Function.test.coffee Number.test.coffee Object.test.coffee String.test.coffee console.test.coffee crypto.test.coffee fs.test.coffee http.GET.test.coffee http.POST.test.coffee http.Server.test.coffee http.test.coffee path.test.coffee process.test.coffee encoding.test.coffee globals.test.coffee
  • assert_Function.litcoffee

  • ¶

    dependencies

    assert = require('assert')
  • ¶

    Function::assert_Throws() onError

    Asserts that a function throws an exception.

    If provided the callback method will be called with the Error object

    Function::assert_Throws=  (callback) ->
      message = "[assert_Throws]"
      onError = (error)=>
        callback error if callback
        true
      assert.throws(@, onError, message)
      return @
  • ¶

    Function::assert_Not_Throws()

    Function::assert_Not_Throws         = ->
      message = "[assert_Not_Throws]"
      assert.doesNotThrow(@, message)
      return @
  • ¶

    Function::assert_Is_Function()

    Function::assert_Is_Function        = ->
      message = "[assert_Is_Function]"
      test    = typeof(@)
      assert.equal(test, 'function', message)
      @
  • ¶

  • ¶

    back to index