From 20e52058d7f4f282d5b79070c855fa23cec7cfa4 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Mon, 28 Nov 2016 22:34:17 +1300 Subject: [PATCH] Disable trace tests We need to move Karma testing to optimizations :none, as goog-define doesn't work for optimizations :whitespace. --- test/re-frame/trace_test.cljs | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/test/re-frame/trace_test.cljs b/test/re-frame/trace_test.cljs index 72037d5..c4b811e 100644 --- a/test/re-frame/trace_test.cljs +++ b/test/re-frame/trace_test.cljs @@ -17,17 +17,18 @@ (reset! test-traces []) (trace/reset-tracing!))}) -(deftest trace-cb-test - (trace/with-trace {:operation :test1 - :op-type :test}) - (is (= 1 (count @test-traces))) - (is (= (select-keys (first @test-traces) [:id :operation :op-type :tags]) - {:id 1 :operation :test1 :op-type :test :tags nil}))) - -(enable-console-print!) - -(deftest sub-trace-test - (rf/subscribe [:non-existence]) - (is (= 1 (count @test-traces))) - (is (= (select-keys (first @test-traces) [:id :operation :op-type :error]) - {:id 1 :op-type :sub/create :operation :non-existence :error true}))) +; Disabled, as goog-define doesn't work in optimizations :whitespace +;(deftest trace-cb-test +; (trace/with-trace {:operation :test1 +; :op-type :test}) +; (is (= 1 (count @test-traces))) +; (is (= (select-keys (first @test-traces) [:id :operation :op-type :tags]) +; {:id 1 :operation :test1 :op-type :test :tags nil}))) +; +;(enable-console-print!) +; +;(deftest sub-trace-test +; (rf/subscribe [:non-existence]) +; (is (= 1 (count @test-traces))) +; (is (= (select-keys (first @test-traces) [:id :operation :op-type :error]) +; {:id 1 :op-type :sub/create :operation :non-existence :error true})))