@@ -43,18 +43,20 @@ const h5JavaScriptCode = h5JavaScriptFiles
|
||||
.map((filePath) => readText(filePath))
|
||||
.join('\n')
|
||||
|
||||
for (const required of ['第三方导航', 'third-party-providers']) {
|
||||
assertContains(pageChunkCode, required, 'H5 首页 chunk')
|
||||
for (const required of [
|
||||
'第三方',
|
||||
'打开地图',
|
||||
'jweixin',
|
||||
'miniProgram',
|
||||
'/pages/open-location/index',
|
||||
'baidumap://',
|
||||
'iosamap://',
|
||||
'androidamap://'
|
||||
]) {
|
||||
assertContains(h5JavaScriptCode, required, 'H5 全量 JS')
|
||||
}
|
||||
|
||||
for (const forbidden of [
|
||||
'打开地图导航',
|
||||
'native-location',
|
||||
'jweixin',
|
||||
'wx.miniProgram',
|
||||
'宿主地图',
|
||||
'/pages/open-location/index'
|
||||
]) {
|
||||
for (const forbidden of ['native-location']) {
|
||||
assertNotContains(h5JavaScriptCode, forbidden, 'H5 全量 JS')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user