bhauman / devcards

Devcards aims to provide a visual REPL experience for ClojureScript
1.53k stars 116 forks source link

fix react warnings when a test contains duplicate (is ..) forms #101

Closed pieter-van-prooijen closed 8 years ago

pieter-van-prooijen commented 8 years ago

Hello Bruce,

The current test code doesn't render (testing ...) blocks with duplicate (is ...) assertions, because the react components get the same key. It also gives warnings when using using the react development version. I've made a small change which makes the keys unique within a deftest, so your test can contain assertions which have the same form.

Kind regards,

Pieter van Prooijen

bhauman commented 8 years ago

Looks good to me :)