update: state, event, condition, data.event.types

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent e035cdfe90
commit e646492e75
18 changed files with 1216 additions and 793 deletions
+2 -7
View File
@@ -1,5 +1,5 @@
import { expect, test, describe } from 'bun:test'
import { checkCondition } from '.'
import { check } from '.'
// 定义属性 mock 字典的类型契约
interface MockProperties {
@@ -10,12 +10,7 @@ interface MockProperties {
* 属性注入高阶函数:模拟角色属性管理类
*/
function withProp(prop: MockProperties) {
const p = {
get(key: string): any {
return prop[key]
},
}
return (condition: string): boolean => checkCondition(p, condition)
return (condition: string): boolean => check(prop, condition)
}
describe('condition', () => {