test: update unit test

This commit is contained in:
pengzhanbo 2025-05-07 10:45:07 +08:00
parent 8424074753
commit d3105eaa7d

View File

@ -10,9 +10,9 @@ describe('resolveAttrs(info)', () => {
attrs: { a: '1' }, attrs: { a: '1' },
}) })
expect(resolveAttrs('a=1 b=2 c')).toEqual({ expect(resolveAttrs('a=1 b=2 c d=""')).toEqual({
rawAttrs: 'a=1 b=2 c', rawAttrs: 'a=1 b=2 c d=""',
attrs: { a: '1', b: '2', c: true }, attrs: { a: '1', b: '2', c: true, d: '' },
}) })
expect(resolveAttrs('a=1 b=true c=false')).toEqual({ expect(resolveAttrs('a=1 b=true c=false')).toEqual({