diff --git a/pages/API/get-app/get-app.test.js b/pages/API/get-app/get-app.test.js
index 88dcc9203203ce4080e734400cf9d89c597584a3..ef9dffd05c73eca6f9fd9e853ccaf8bde7c2ae75 100644
--- a/pages/API/get-app/get-app.test.js
+++ b/pages/API/get-app/get-app.test.js
@@ -47,10 +47,6 @@ describe('getApp', () => {
expect(newLifeCycleNum - oldLifeCycleNum).toBe(100)
await page.callMethod('setLifeCycleNum', oldLifeCycleNum)
})
- it('eventBus', async () => {
- const res = await page.callMethod('checkEventBus')
- expect(res).toBe(true)
- })
it('getAndroidApplication', async () => {
const res = await page.callMethod('checkGetAndroidApplication')
expect(res).toBe(true)
diff --git a/pages/API/get-app/get-app.uvue b/pages/API/get-app/get-app.uvue
index bd31778c94c4a016fc4162813287019ab054d426..e31a5df4b10bb8ec6094e830c20935a749cdfddf 100644
--- a/pages/API/get-app/get-app.uvue
+++ b/pages/API/get-app/get-app.uvue
@@ -39,9 +39,6 @@
increase lifeCycleNum
lifeCycleNum: {{ lifeCycleNum }}
-
@@ -174,39 +171,6 @@
setLifeCycleNum(num : number) {
setLifeCycleNum(num)
},
- checkEventBus() : boolean {
- const app = getApp()
- let num = 0
- const fn1 = (args : any | null) => {
- console.log('fn1 triggred', args)
- num++
- }
- const fn2 = (args : any | null) => {
- console.log('fn2 triggred', args)
- num++
- }
- const fn3 = (args : any | null) => {
- console.log('fn3 triggred', args)
- num++
- }
-
- app.on('fn12', fn1)
- app.on('fn12', fn2)
- app.once('fn3', fn3)
-
- app.emit('fn12', { name: 'name' })
- app.emit('fn12', { age: 20 })
- app.off('fn12', fn1)
- app.emit('fn12', null)
-
- app.emit('fn3', { name: 'name' })
- app.emit('fn3', { age: 20 })
- app.emit('fn3', null)
-
- const res = num == 6
- console.log('check eventBus', res)
- return res
- },
checkGetAndroidApplication() : boolean {
const app = getApp()
const androidApplication = app.getAndroidApplication()