10000 Update unit test for showLink · won21kr/plotly.js@72a604c · GitHub
[go: up one dir, main page]

Skip to content

Commit 72a604c

Browse files
authored
Update unit test for showLink
1 parent d5a26a4 commit 72a604c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/jasmine/tests/config_test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,7 @@ describe('config argument', function() {
160160

161161
var link = document.getElementsByClassName('js-plot-link-container')[0];
162162

163-
expect(link.textContent).toBe('');
164-
165-
var bBox = link.getBoundingClientRect();
166-
expect(bBox.width).toBe(0);
167-
expect(bBox.height).toBe(0);
163+
expect(link).toBeUndefined();
168164
});
169165

170166
it('should display a link when true', function() {

0 commit comments

Comments
 (0)
0