diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index a54d98aa885205fac0907af57739237f3a96af78..0000000000000000000000000000000000000000 --- a/jest.config.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - testTimeout: 10000, - reporters: [ - 'default' - ], - watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'], - moduleFileExtensions: ['js', 'json'], - rootDir: __dirname, - testMatch: ["/pages/**/*test.[jt]s?(x)"], - testPathIgnorePatterns: ['/node_modules/'] -} diff --git a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts index 7d3bbf103e608a021aadc8418a44342f7371c316..c32541bb28cdc011b60711ba0db074caf83b3e17 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts +++ b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts @@ -58,4 +58,9 @@ export type GetBatteryInfoOptions = { * @assert () => success({errCode: 0, errSubject: "uni-getBatteryInfo", errMsg: "getBatteryInfo:ok", level: 60, isCharging: false }) * @assert () => fail({errCode: 1001, errSubject: "uni-getBatteryInfo", errMsg: "getBatteryInfo:fail getAppContext is null" }) */ -export type GetBatteryInfo = (options : GetBatteryInfoOptions) => void \ No newline at end of file +export type GetBatteryInfo = (options : GetBatteryInfoOptions) => void + + +interface Uni { + getBatteryInfo : GetBatteryInfo +} \ No newline at end of file diff --git a/uni_modules/uni-wifi/utssdk/uni.autotest.js b/uni_modules/uni-wifi/utssdk/uni.autotest.js deleted file mode 100644 index 93873d525a3ea40fb0db01ad2d71414106ed9b2e..0000000000000000000000000000000000000000 --- a/uni_modules/uni-wifi/utssdk/uni.autotest.js +++ /dev/null @@ -1,35 +0,0 @@ -function startWifi() { - return new Promise((resolve, reject) => { - uni.startWifi({ - success: () => { - console.log('startWifi success'); - resolve() - }, - fail: () => { - console.log('startWifi fail'); - reject() - } - }) - }) -} - -function stopWifi() { - return new Promise((resolve, reject) => { - uni.stopWifi({ - success: () => { - console.log('stopWifi success'); - resolve() - }, - fail: () => { - console.log('stopWifi success'); - fail() - } - }) - }) -} - - -module.exports = { - startWifi, - stopWifi -}