From e2fbf495d49ce6db2d06114061442c4de6af6670 Mon Sep 17 00:00:00 2001 From: Ryan Brewster Date: Tue, 31 Jul 2018 13:16:16 -0700 Subject: [PATCH] silence console logging during tests --- spec/atrackt_spec.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/atrackt_spec.coffee b/spec/atrackt_spec.coffee index 818ab00..08f8ff6 100644 --- a/spec/atrackt_spec.coffee +++ b/spec/atrackt_spec.coffee @@ -1,5 +1,7 @@ # Setup plugin # +# prevent console from logging during tests +window.console.log = -> # create plugin to test with Atrackt.setPlugin 'Foo Plugin', @@ -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