Sha256: 7d89c2ff2b46c1d01a4731856f7a618374eb1477e93e8b54453f5be367b746f9

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

describe "Joosy.Modules.Log", ->

  beforeEach ->
    class @TestLog extends Joosy.Module
      @include Joosy.Modules.Log
    @box = new @TestLog()

  it "should log into console", ->
    @box.log 'message', 'appendix'

  it "should log debug messages into console", ->
    Joosy.debug = true
    @box.debug 'debug message'
    Joosy.debug = false
    @box.debug 'unseen debug message'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
joosy-1.0.0.RC1 spec/javascripts/joosy/core/modules/log_spec.js.coffee
joosy-0.1.0.RC3 spec/javascripts/joosy/core/modules/log_spec.js.coffee
joosy-0.1.0.RC2 spec/javascripts/joosy/core/modules/log_spec.js.coffee
joosy-0.1.0.RC1 spec/javascripts/joosy/core/modules/log_spec.js.coffee