first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
|
||||
import { hasUploadedReceipt } from '../src/utils/order.mjs'
|
||||
|
||||
test('已取消订单没有回执地址时不视为已上传', () => {
|
||||
assert.equal(hasUploadedReceipt(''), false)
|
||||
assert.equal(hasUploadedReceipt(null), false)
|
||||
})
|
||||
|
||||
test('存在回执地址时视为已上传', () => {
|
||||
assert.equal(hasUploadedReceipt('https://example.com/receipt.jpg'), true)
|
||||
})
|
||||
Reference in New Issue
Block a user