(typeinfo: TypeInfo, input: any, expected?: any)
| 85 | }) |
| 86 | |
| 87 | function testTypeInfo(typeinfo: TypeInfo, input: any, expected?: any) { |
| 88 | const fory = new Fory({ compatible: false }); |
| 89 | const serialize = fory.register(typeinfo); |
| 90 | const result = serialize.deserialize( |
| 91 | serialize.serialize(input) |
| 92 | ); |
| 93 | expect(result).toEqual(expected ?? input) |
| 94 | } |
| 95 | }); |
no test coverage detected