feat(listing): 增加押金说明配置与悬浮提示
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { mergeListingPublishOptions } from './listingOptions'
|
||||
|
||||
describe('mergeListingPublishOptions', () => {
|
||||
it('读取后台配置的押金说明', () => {
|
||||
const options = mergeListingPublishOptions({
|
||||
price_config: {
|
||||
deposit_placeholder: '',
|
||||
deposit_hint: '',
|
||||
deposit_tooltip: '自定义押金说明',
|
||||
price_placeholder: '',
|
||||
ratio_description: '',
|
||||
},
|
||||
})
|
||||
|
||||
expect(options.price_config.deposit_tooltip).toBe('自定义押金说明')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user