aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/util/backdrop.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/util/backdrop.spec.js b/js/tests/unit/util/backdrop.spec.js
index 195d5067c..3150ba14d 100644
--- a/js/tests/unit/util/backdrop.spec.js
+++ b/js/tests/unit/util/backdrop.spec.js
@@ -243,10 +243,10 @@ describe('Backdrop', () => {
})
})
- it('Should default parent element to "document.body" when config value is null', done => {
+ it('Should find the rootElement if passed as a string', done => {
const instance = new Backdrop({
isVisible: true,
- rootElement: null
+ rootElement: 'body'
})
const getElement = () => document.querySelector(CLASS_BACKDROP)
instance.show(() => {