Skip to content

Commit

Permalink
Fix old (duplicate?) spacebars-tests failures, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Newman committed Sep 7, 2018
1 parent 5519fd8 commit e6b8a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/spacebars-tests/old_templates_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1393,11 +1393,11 @@ Tinytest.add("spacebars-tests - old - template_tests - radio", function(test) {
var btns = nodesToArray(div.getElementsByTagName("INPUT"));
var text = function () {
var text = div.innerText || div.textContent;
return text.replace(/[ \n\r]+/g, " ");
return text.replace(/[ \n\r]+/g, " ").replace(/^\s+|\s+$/g, "");
};

test.equal(_.pluck(btns, 'checked'), [false, false, false]);
test.equal(text(), "Band: ");
test.equal(text(), "Band:");

clickIt(btns[0]);
test.equal(change_buf, ['AM']);
Expand Down

0 comments on commit e6b8a12

Please sign in to comment.