이미지 너비 패널 이벤트 전달 수정
This commit is contained in:
11
tests/admin-post-settings-sidebar-events.test.js
Normal file
11
tests/admin-post-settings-sidebar-events.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import { readFileSync } from 'node:fs'
|
||||
import test from 'node:test'
|
||||
|
||||
const source = readFileSync(new URL('../components/admin/AdminPostSettingsSidebar.vue', import.meta.url), 'utf8')
|
||||
|
||||
test('블록 패널의 다중 인자 이벤트는 사이드바에서 그대로 전달한다', () => {
|
||||
assert.match(source, /@update-media-image="\(\.\.\.args\) => emit\('update-media-image', \.\.\.args\)"/)
|
||||
assert.match(source, /@set-media-use-alt="\(\.\.\.args\) => emit\('set-media-use-alt', \.\.\.args\)"/)
|
||||
assert.match(source, /@move-gallery-image="\(\.\.\.args\) => emit\('move-gallery-image', \.\.\.args\)"/)
|
||||
})
|
||||
Reference in New Issue
Block a user