baconjs / bacon.jquery

MIT License
74 stars 23 forks source link

Tests for the stuff shipped from Bacon.UI #10

Closed raimohanska closed 11 years ago

raimohanska commented 11 years ago

There's a bunch of stuff (AJAX, JQuery DOM Events, JQuery animations) that was just copy-pasted from Bacon.UI without any testing. Some tests should be added.

AJAX can be tested using Mockjax.

Event helpers can be tested using JQuery.trigger.

Animations can be tested using JQuery. It might be enough to test, for instance, that fadeOutE works in the sense that it hides the element and produces an event through the stream.

raimohanska commented 11 years ago

Also, the tests for change in DOM value are missing for most cases.

raimohanska commented 11 years ago

Update: now it's just the Ajax stuff that's untested.

raimohanska commented 11 years ago

Update 2: there's now tests for Ajax too.