统一前后端代码格式化配置
This commit is contained in:
@@ -7,11 +7,7 @@ import {
|
||||
signOpen91Payload,
|
||||
verifyOpen91Signature,
|
||||
} from './crypto.js'
|
||||
import {
|
||||
buildOpen91CardItem,
|
||||
formatOpen91ExpireTime,
|
||||
resolveOpen91QueryState,
|
||||
} from './response.js'
|
||||
import { buildOpen91CardItem, formatOpen91ExpireTime, resolveOpen91QueryState } from './response.js'
|
||||
|
||||
test('signOpen91Payload signs only request body fields', () => {
|
||||
const config = {
|
||||
@@ -77,7 +73,10 @@ test('encryptOpen91Cards matches documented AES ECB base64 sample', () => {
|
||||
test('resolveOpen91QueryState returns success only when every task is ready', () => {
|
||||
assert.deepEqual(
|
||||
resolveOpen91QueryState({
|
||||
tasks: [{ id: 1, task_status: 'pending_binding_prepare' }, { id: 2, task_status: 'waiting_binding' }],
|
||||
tasks: [
|
||||
{ id: 1, task_status: 'pending_binding_prepare' },
|
||||
{ id: 2, task_status: 'waiting_binding' },
|
||||
],
|
||||
readyTaskIds: [1, 2],
|
||||
}),
|
||||
{
|
||||
@@ -89,7 +88,10 @@ test('resolveOpen91QueryState returns success only when every task is ready', ()
|
||||
|
||||
assert.deepEqual(
|
||||
resolveOpen91QueryState({
|
||||
tasks: [{ id: 1, task_status: 'pending_binding_prepare' }, { id: 2, task_status: 'waiting_binding' }],
|
||||
tasks: [
|
||||
{ id: 1, task_status: 'pending_binding_prepare' },
|
||||
{ id: 2, task_status: 'waiting_binding' },
|
||||
],
|
||||
readyTaskIds: [1],
|
||||
}),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user