Disable trace tests

We need to move Karma testing to optimizations :none, as goog-define
doesn't work for optimizations :whitespace.
This commit is contained in:
Daniel Compton 2016-11-28 22:34:17 +13:00
parent 4d8a311134
commit 20e52058d7
1 changed files with 15 additions and 14 deletions

View File

@ -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})))