Skip to content
Snippets Groups Projects
Verified Commit 3c55f7ab authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: tests

parent 5e06a61c
No related branches found
No related tags found
No related merge requests found
...@@ -102,13 +102,13 @@ describe('DOM', function () { ...@@ -102,13 +102,13 @@ describe('DOM', function () {
}); });
it('should found callback initCustomControlOptionsCallback', function () { it('should found callback initCustomControlCallback', function () {
let mocks = document.getElementById('mocks'); let mocks = document.getElementById('mocks');
mocks.innerHTML = `<div id="call-back-host"></div><div id="container"></div>`; mocks.innerHTML = `<div id="call-back-host"></div><div id="container"></div>`;
const container = document.getElementById('call-back-host'); const container = document.getElementById('call-back-host');
container.initCustomControlOptionsCallback = function (control) { container.initCustomControlCallback = function (control) {
control.setOption('test', 1); control.setOption('test', 1);
} }
...@@ -120,14 +120,14 @@ describe('DOM', function () { ...@@ -120,14 +120,14 @@ describe('DOM', function () {
}); });
it('should found callback initCustomControlOptionsCallback from self', function () { it('should found callback initCustomControlCallback from self', function () {
let mocks = document.getElementById('mocks'); let mocks = document.getElementById('mocks');
mocks.innerHTML = `<div id="call-back-host"></div><div id="container"></div>`; mocks.innerHTML = `<div id="call-back-host"></div><div id="container"></div>`;
let control = document.createElement(randomTagNumber); let control = document.createElement(randomTagNumber);
expect(control.getOption('test')).is.eql(0); expect(control.getOption('test')).is.eql(0);
control.initCustomControlOptionsCallback = function (control) { control.initCustomControlCallback = function (control) {
control.setOption('test', 2); control.setOption('test', 2);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment