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:
parent
4d8a311134
commit
20e52058d7
|
@ -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})))
|
||||
|
|
Loading…
Reference in New Issue