修正前端全量回归夹具
支持多行模块导入的安全设置测试夹具,并同步客户端协议 HTML 分行文案断言。
This commit is contained in:
1 parent
2f83a22dd2
commit
d2cb04a85b
2 files changed
+4
-4
No files matched your search
@@ -6,7 +6,7 @@ import { computed, reactive, ref } from './vue.mjs'
|
||||
|
||||
const source = readFileSync(new URL('../../frontend/src/views/components/SecuritySettings/SecuritySettings.js', import.meta.url), 'utf8')
|
||||
const createPage = compileFunction(
|
||||
source.replace(/^import .*$/gm, '').replace('export function usePage', 'function usePage') + '\nreturn usePage()',
|
||||
source.replace(/^import[\s\S]*?from .*$/gm, '').replace('export function usePage', 'function usePage') + '\nreturn usePage()',
|
||||
['computed', 'reactive', 'ref', 'watch', 'onMounted', 'onUnmounted', 'http', 'useGlobalStatusStore', 'webAuthnSupported', 'lang', 'ElNotification', 'TextEncoder', 'location', 'setInterval', 'clearInterval']
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user