From 0d5246bd326e3df1015e60db3adaf2686d01277f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E5=AE=B6=E7=9D=BF?= Date: Wed, 16 Mar 2022 19:01:10 +0800 Subject: [PATCH] emitter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 付家睿 --- .../entry/src/main/js/test/EmitterTest.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/test/EmitterTest.js b/notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/test/EmitterTest.js index 3bb013d06..62db75821 100644 --- a/notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/test/EmitterTest.js +++ b/notification/ces_standard/subscribeandpublish/emittertest/entry/src/main/js/test/EmitterTest.js @@ -25,12 +25,12 @@ describe('EmitterTest', function () { } } - var innerEvent_immediadte = { + var InnerEventImmediate = { eventId: 1, priority: emitter.EventPriority.IMMEDIATE } - var innerEvent_low = { + var InnerEventLow = { eventId: 2, priority: emitter.EventPriority.LOW } @@ -53,7 +53,7 @@ describe('EmitterTest', function () { */ it('EmitterOnTest', 0, async function (done) { console.info("===========EmitterOnTest====================>"); - emitter.on(innerEvent_immediadte, callback); + emitter.on(InnerEventImmediate, callback); done(); }) @@ -64,7 +64,7 @@ describe('EmitterTest', function () { */ it('EmitterOnceTest', 0, async function (done){ console.info("===========EmitterOnceTest====================>"); - emitter.once(innerEvent_immediadte, callback); + emitter.once(InnerEventImmediate, callback); done(); }) @@ -75,8 +75,8 @@ describe('EmitterTest', function () { */ it('EmitterEmitTest', 0, async function (done){ console.info("===========EmitterEmitTest====================>"); - emitter.once(innerEvent_immediadte, callback01); - emitter.emit(innerEvent_immediadte, eventData); + emitter.once(InnerEventImmediate, callback01); + emitter.emit(InnerEventImmediate, eventData); done(); }) @@ -87,8 +87,8 @@ describe('EmitterTest', function () { */ it('EmitterLowTest', 0, async function (done){ console.info("===========EmitterLowTest====================>"); - emitter.once(innerEvent_low, callback01); - emitter.emit(innerEvent_low,eventData); + emitter.once(InnerEventLow, callback01); + emitter.emit(InnerEventLow,eventData); done(); }) -- GitLab