diff --git a/pages.json b/pages.json index c47e549427c09187d391760066e13cb375667208..73dab942d1955b36f0747e3671759ff5cdde39ab 100644 --- a/pages.json +++ b/pages.json @@ -147,6 +147,12 @@ "backgroundColor": "#F8F8F8" } }, + { + "path": "pages/API/get-app/get-app", + "style": { + "navigationBarTitleText": "getApp" + } + }, { "path": "pages/API/navigator/navigator", "style": { diff --git a/pages/API/get-app/get-app.test.js b/pages/API/get-app/get-app.test.js new file mode 100644 index 0000000000000000000000000000000000000000..adf326f60bc0a57022855fd800f902caa87ea6fc --- /dev/null +++ b/pages/API/get-app/get-app.test.js @@ -0,0 +1,11 @@ +const PAGE_PATH = '/pages/API/get-app/get-app' + +describe('getApp', () => { + it('getApp', async () => { + const page = await program.navigateTo(PAGE_PATH) + await page.waitFor(1000) + await page.callMethod('getApp') + const data = await page.data() + expect(data.checked).toBe(true) + }) +}) diff --git a/pages/API/get-app/get-app.uvue b/pages/API/get-app/get-app.uvue new file mode 100644 index 0000000000000000000000000000000000000000..beb41483fda12bc875617176d74c8a67f35ea564 --- /dev/null +++ b/pages/API/get-app/get-app.uvue @@ -0,0 +1,24 @@ + + diff --git a/pages/API/navigator/new-page/new-page-1.uvue b/pages/API/navigator/new-page/new-page-1.uvue index 07efc3fde0be54c35b88a1ecf7acb0b197807696..377703d2e44578f7dce9ea854175266351218ec0 100644 --- a/pages/API/navigator/new-page/new-page-1.uvue +++ b/pages/API/navigator/new-page/new-page-1.uvue @@ -1,5 +1,6 @@