aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-03-29 09:53:57 +0300
committerGitHub <[email protected]>2020-03-29 09:53:57 +0300
commited94976ea80cfe5fa2bd9b6a6913c78de8626045 (patch)
treedab1df18fe565637c3fec61ef7361bda02bccf23 /js/tests
parentdec3ea6a7f18e9127a771492e55ad2b94ab03e2a (diff)
downloadbootstrap-ed94976ea80cfe5fa2bd9b6a6913c78de8626045.tar.xz
bootstrap-ed94976ea80cfe5fa2bd9b6a6913c78de8626045.zip
Use `textContent` instead of `innerText`. (#30462)
It's supported by all of our supported browsers.
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/tooltip.spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js
index ed89315e0..5e3bb9326 100644
--- a/js/tests/unit/tooltip.spec.js
+++ b/js/tests/unit/tooltip.spec.js
@@ -913,7 +913,7 @@ describe('Tooltip', () => {
tooltip.setElementContent(tooltip.getTipElement(), 'test')
- expect(tooltip.getTipElement().innerText).toEqual('test')
+ expect(tooltip.getTipElement().textContent).toEqual('test')
})
})