feat:移除了弹窗,服务器添加sls

This commit is contained in:
AxTps committed 2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 files changed
+1322534

No files matched your search

@@ -0,0 +1,12 @@
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'
test('context menu removes global listeners from their registration targets', () => {
const source = readFileSync(new URL('./ContextMenu.vue', import.meta.url), 'utf8')
assert.match(source, /window\.addEventListener\('click', handleClickOutside\)/)
assert.match(source, /window\.removeEventListener\('click', handleClickOutside\)/)
assert.match(source, /document\.body\.addEventListener\('keyup', onEscKeyRelease\)/)
assert.match(source, /document\.body\.removeEventListener\('keyup', onEscKeyRelease\)/)
})