Add (failing) test for parsing todomvc
Shows incorrect time handling after Figwheel reloads
This commit is contained in:
parent
894f566e87
commit
025537c757
File diff suppressed because one or more lines are too long
|
@ -37,3 +37,33 @@
|
|||
(is (= (m/beginning-id m6) 50))
|
||||
(is (= (m/ending-id m6) 181))
|
||||
(is (= (:operation (m/matched-event m6)) :acme.myapp.events/success-bootstrap))))
|
||||
|
||||
#_(deftest parse-todomvc-trace1-test
|
||||
(let [rt (m/parse-traces (trace-events "todomvc-trace1.edn"))
|
||||
matches (:matches rt)
|
||||
[m1 m2 m3 m4 m5 m6] matches]
|
||||
(is (= (count matches) 3))
|
||||
|
||||
(is (= (m/beginning-id m1) 1))
|
||||
(is (= (m/ending-id m1) 34))
|
||||
(is (= (:operation (m/matched-event m1)) :bootstrap))
|
||||
|
||||
(is (= (m/beginning-id m2) 35))
|
||||
(is (= (m/ending-id m2) 38))
|
||||
(is (= (:operation (m/matched-event m2)) :acme.myapp.events/boot-flow))
|
||||
|
||||
(is (= (m/beginning-id m3) 39))
|
||||
(is (= (m/ending-id m3) 42))
|
||||
(is (= (:operation (m/matched-event m3)) :acme.myapp.events/init-db))
|
||||
|
||||
(is (= (m/beginning-id m4) 43))
|
||||
(is (= (m/ending-id m4) 47))
|
||||
(is (= (:operation (m/matched-event m4)) :acme.myapp.events/boot-flow))
|
||||
|
||||
(is (= (m/beginning-id m5) 48))
|
||||
(is (= (m/ending-id m5) 49))
|
||||
(is (= (:operation (m/matched-event m5)) :acme.myapp.events/start-intercom))
|
||||
|
||||
(is (= (m/beginning-id m6) 50))
|
||||
(is (= (m/ending-id m6) 181))
|
||||
(is (= (:operation (m/matched-event m6)) :acme.myapp.events/success-bootstrap))))
|
||||
|
|
Loading…
Reference in New Issue