Skip to content

Commit e905b5d

Browse files
committed
remove *all* text conversion testers
1 parent cbbb2d6 commit e905b5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/svg_text_utils_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('svg+text utils', function() {
1111
function mockTextSVGElement(txt) {
1212
return d3.select('body')
1313
.append('svg')
14-
.attr('id', 'text')
14+
.classed('text-tester', true)
1515
.append('text')
1616
.text(txt)
1717
.call(util.convertToTspans)
@@ -74,7 +74,7 @@ describe('svg+text utils', function() {
7474
}
7575

7676
afterEach(function() {
77-
d3.select('#text').remove();
77+
d3.selectAll('.text-tester').remove();
7878
});
7979

8080
it('checks for XSS attack in href', function() {

0 commit comments

Comments
 (0)