long
2021-08-06 245859d1d0820c9712fcc22a23e64bdffa796191
提交 | 用户 | age
2a61f6 1 import { param2Obj } from '@/utils/index.js'
L 2 describe('Utils:param2Obj', () => {
3   const url = 'https://github.com/PanJiaChen/vue-element-admin?name=bill&age=29&sex=1&field=dGVzdA==&key=%E6%B5%8B%E8%AF%95'
4
5   it('param2Obj test', () => {
6     expect(param2Obj(url)).toEqual({
7       name: 'bill',
8       age: '29',
9       sex: '1',
10       field: window.btoa('test'),
11       key: '测试'
12     })
13   })
14 })