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

fix: tests

parent 5e06a61c
Branches
Tags v1.16.1
No related merge requests found
......@@ -102,13 +102,13 @@ describe('DOM', function () {
});
it('should found callback initCustomControlOptionsCallback', function () {
it('should found callback initCustomControlCallback', function () {
let mocks = document.getElementById('mocks');
mocks.innerHTML = `<div id="call-back-host"></div><div id="container"></div>`;
const container = document.getElementById('call-back-host');
container.initCustomControlOptionsCallback = function (control) {
container.initCustomControlCallback = function (control) {
control.setOption('test', 1);
}
......@@ -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');
mocks.innerHTML = `<div id="call-back-host"></div><div id="container"></div>`;
let control = document.createElement(randomTagNumber);
expect(control.getOption('test')).is.eql(0);
control.initCustomControlOptionsCallback = function (control) {
control.initCustomControlCallback = function (control) {
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