diff --git a/barrierfree/accessibleregisterstate/src/main/js/test/AccessibleRegisterState.test.js b/barrierfree/accessibleregisterstate/src/main/js/test/AccessibleRegisterState.test.js index 712d91922793ae662ca7f195d2dd1326c2f36e74..ee23707c5f24adc985f8238541ebab108441a770 100644 --- a/barrierfree/accessibleregisterstate/src/main/js/test/AccessibleRegisterState.test.js +++ b/barrierfree/accessibleregisterstate/src/main/js/test/AccessibleRegisterState.test.js @@ -47,8 +47,9 @@ describe('AccessibleRegisterState', function () { it('RegisterStateOnOff_0330', 0, async function (done) { console.info('RegisterStateOnOff_0330'); let stateEventType = 'accessibilityStateChange'; - accessibility.on(stateEventType, (data) => {}); - accessibility.off(stateEventType, (data) => {}); + let callbackdata = (data) => {} + accessibility.on(stateEventType, callbackdata); + accessibility.off(stateEventType, callbackdata); expect(true).assertTrue(); done(); }) @@ -64,11 +65,12 @@ describe('AccessibleRegisterState', function () { it('RegisterStateOnOff_0340', 0, async function (done) { console.info('RegisterStateOnOff_0340'); let stateEventType = 'touchGuideStateChange'; - accessibility.on(stateEventType, (data) => {}); - accessibility.off(stateEventType, (data) => {}); + let callbackdata = (data) => {} + + accessibility.on(stateEventType, callbackdata); + accessibility.off(stateEventType, callbackdata); expect(true).assertTrue(); done(); }) }) - -} +} \ No newline at end of file