Skip to content

Commit

Permalink
silence console logging during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brewster1134 committed Jul 31, 2018
1 parent cf7d438 commit e2fbf49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/atrackt_spec.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Setup plugin
#
# prevent console from logging during tests
window.console.log = ->

# create plugin to test with
Atrackt.setPlugin 'Foo Plugin',
Expand All @@ -8,6 +10,7 @@ _plugin = Atrackt.plugins['foo-plugin']

describe 'Atrackt', ->
before ->

# make sure the foo plugin is the only registered plugin
Atrackt.plugins =
'foo-plugin': _plugin
Expand Down

0 comments on commit e2fbf49

Please sign in to comment.