SilurianYang / uni-simple-router

A simple, lightweight 'uni-app' routing plugin
https://v2.hhyang.cn/v2/
MIT License
749 stars 163 forks source link

add(test): query-toggle.spec.ts 单个普通参数匹配分组 #459

Closed YuBoWang-xidian closed 1 year ago

YuBoWang-xidian commented 1 year ago

多个同类型测试用例分组匹配时异常,新增新分组排除此问题。

it('单个普通参数2',()=>{
    const query={
        name:'wyb',
        ages:22,
        open:true
    }
    const result = deepDecodeQuery(query);

    expect(JSON.stringify(result)).toEqual(JSON.stringify(query));
})