Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit b8a364c

Browse files
committed
Test disabling on change
1 parent 527c83d commit b8a364c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unit/test_task_lists.coffee

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,15 @@ asyncTest "doesn't enable task list items when a .js-task-list-field is absent",
6464
setTimeout ->
6565
start()
6666
, 20
67+
68+
asyncTest "disables task list items when changing source", ->
69+
expect 1
70+
71+
$(document).on 'tasklist:disabled', (event) ->
72+
ok true
73+
74+
setTimeout ->
75+
start()
76+
, 20
77+
78+
@checkbox.click()

0 commit comments

Comments
 (0)