Skip to content

Commit

Permalink
Changed dummy class name in tagCount tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mybrainishuge committed Mar 27, 2016
1 parent 48b0767 commit 89fd02d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/part2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
describe('32. Count tags', function() {

var htmlStrings = [
'<p class="targetClassName"></p>',
'<p class="otherClassName targetClassName"></p>',
'<p><p class="targetClassName"></p></p>',
'<p><p class="targetClassName"><p class="targetClassName"></p></p></p>',
'<p><p></p><p><p class="targetClassName"></p></p></p>',
'<p><p class="targetClassName"></p><p class="targetClassName"></p></p>',
'<p><div class="somediv"><div class="innerdiv"><span class="targetClassName">yay</span></div></div></p>'
'<p class="recursionTest"></p>',
'<p class="otherClassName recursionTest"></p>',
'<p><p class="recursionTest"></p></p>',
'<p><p class="recursionTest"><p class="recursionTest"></p></p></p>',
'<p><p></p><p><p class="recursionTest"></p></p></p>',
'<p><p class="recursionTest"></p><p class="recursionTest"></p></p>',
'<p><div class="somediv"><div class="innerdiv"><span class="recursionTest">yay</span></div></div></p>'
];

var result;
Expand All @@ -21,7 +21,7 @@
tagCount = sinon.spy(tagCount);

it('should return number of times of tag occurs on node', function(){
$('body').addClass('targetClassName');
$('body').addClass('recursionTest');
htmlStrings.forEach(function(htmlString){
var $rootElement = $(htmlString);
$('body').append($rootElement);
Expand All @@ -32,7 +32,7 @@

$rootElement.remove();
});
$('body').removeClass('targetClassName');
$('body').removeClass('recursionTest');
});

it('should return a number', function() {
Expand Down

0 comments on commit 89fd02d

Please sign in to comment.