hoon-snippets icon indicating copy to clipboard operation
hoon-snippets copied to clipboard

Updates the Pomodoro App Test

Open ngzax opened this issue 9 months ago • 0 comments

Hey guys. I was going through https://medium.com/dcspark/writing-robust-hoon-a-guide-to-urbit-unit-testing-82b2631fe20a and unfortunately the pomodoro example is broken due to urbit changes since publication.

I have fixed it up and added a second test for even a bit more elucidation of how you might test.

built   /tests/app/pomodoro/hoon
>   "%pomodoro adding ship ~zod"
>   test-add-client-is-in-watchers-list: took ms/16.692
OK      /tests/app/pomodoro/test-add-client-is-in-watchers-list
>   "%pomodoro adding ship ~zod"
>   test-add-client-initial-status-is-break: took ms/20.782
OK      /tests/app/pomodoro/test-add-client-initial-status-is-break

> -test %/tests/app/pomodoro ~
ok=%.y

cc: @sigilante

ngzax avatar Apr 26 '24 21:04 ngzax