File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ (defun buster-go-to-current-test ()
2+ (search-backward-regexp " \" [^ ]* .+\" : function" ))
3+
4+ (defun buster-toggle-deffered ()
5+ (interactive )
6+ (buster-go-to-current-test)
7+ (forward-char 1 )
8+ (if (looking-at " //" )
9+ (delete-char 2 )
10+ (insert " //" )))
11+
12+ (global-set-key (kbd " C-c C-b td" ) 'buster-toggle-deffered )
13+
114(provide 'buster-mode )
Original file line number Diff line number Diff line change @@ -15,3 +15,16 @@ Feature: Toggle deferred
1515 And I go to the front of the word "assert"
1616 And I press "C-c C-b td"
1717 Then I should see "//contains"
18+
19+ Scenario : Undeferring a test
20+ When I insert:
21+ """
22+ buster.testCase('Building Page', {
23+ "//contains title after loading page": function () {
24+ assert.match(document.body.innerHTML, "Zombie TDD");
25+ }
26+ });
27+ """
28+ And I go to the front of the word "assert"
29+ And I press "C-c C-b td"
30+ Then I should not see "//contains"
You can’t perform that action at this time.
0 commit comments