From bb6e52d1de1468d314da5b8d5d1bda7f60056eba Mon Sep 17 00:00:00 2001 From: hdx Date: Sat, 8 Jul 2023 12:03:53 +0800 Subject: [PATCH] chore: rename page-scrollTo to page-scroll-to --- pages.json | 2 +- .../page-scroll-to.test.js} | 8 ++++---- .../page-scroll-to.uvue} | 0 pages/tabBar/API.uvue | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename pages/API/{page-scrollTo/page-scrollTo.test.js => page-scroll-to/page-scroll-to.test.js} (77%) rename pages/API/{page-scrollTo/page-scrollTo.uvue => page-scroll-to/page-scroll-to.uvue} (100%) diff --git a/pages.json b/pages.json index 012193e2..c77c0e49 100644 --- a/pages.json +++ b/pages.json @@ -556,7 +556,7 @@ } }, { - "path": "pages/API/page-scrollTo/page-scrollTo", + "path": "pages/API/page-scroll-to/page-scroll-to", "style": { "navigationBarTitleText": "pageScrollTo", "enablePullDownRefresh": false diff --git a/pages/API/page-scrollTo/page-scrollTo.test.js b/pages/API/page-scroll-to/page-scroll-to.test.js similarity index 77% rename from pages/API/page-scrollTo/page-scrollTo.test.js rename to pages/API/page-scroll-to/page-scroll-to.test.js index 36595b57..730fa539 100644 --- a/pages/API/page-scrollTo/page-scrollTo.test.js +++ b/pages/API/page-scroll-to/page-scroll-to.test.js @@ -1,13 +1,13 @@ -const PAGE_PATH = '/pages/API/page-scrollTo/page-scrollTo' +const PAGE_PATH = '/pages/API/page-scroll-to/page-scroll-to' -describe('page-scrollTo', () => { +describe('page-scroll-to', () => { let page beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(500) }) // TODO - it('scrollTo', async () => { + it('scroll-to', async () => { const btnScrollTo = await page.$('.btn-scrollTo') await btnScrollTo.tap() @@ -15,7 +15,7 @@ describe('page-scrollTo', () => { // const scrollTop = await page.scrollTop() // expect(scrollTop).toBe(100) }) - // it('scrollToElement', async () => { + // it('scroll-to-element', async () => { // const btnScrollTo = await page.$('.btn-scrollToElement') // const scrollToElement = await page.$('.custom-element') diff --git a/pages/API/page-scrollTo/page-scrollTo.uvue b/pages/API/page-scroll-to/page-scroll-to.uvue similarity index 100% rename from pages/API/page-scrollTo/page-scrollTo.uvue rename to pages/API/page-scroll-to/page-scroll-to.uvue diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue index cbccd19a..5bdca3fa 100644 --- a/pages/tabBar/API.uvue +++ b/pages/tabBar/API.uvue @@ -71,7 +71,7 @@ }, { name: "将页面滚动到目标位置", - url: "page-scrollTo", + url: "page-scroll-to", enable: true }, ] as Page[], -- GitLab