napi-rs/examples/napi-compat-mode/__test__/serde/ser.spec.ts.md

142 lines
1.8 KiB
Markdown
Raw Normal View History

# Snapshot report for `examples/napi-compat-mode/__test__/serde/ser.spec.ts`
2020-08-26 01:07:27 +09:00
The actual snapshot is saved in `ser.spec.ts.snap`.
Generated by [AVA](https://avajs.dev).
## serialize make_num_77 from bindings
2020-08-26 01:07:27 +09:00
> Snapshot 1
77
2020-08-26 01:07:27 +09:00
## serialize make_num_32 from bindings
> Snapshot 1
32
## serialize make_str_hello from bindings
2020-08-26 01:07:27 +09:00
> Snapshot 1
'Hello World'
2020-08-26 01:07:27 +09:00
## serialize make_num_array from bindings
> Snapshot 1
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
]
## serialize make_buff from bindings
> Snapshot 1
Buffer @Uint8Array [
fffefd
]
2020-08-26 01:07:27 +09:00
## serialize make_obj from bindings
> Snapshot 1
{
a: 1,
b: [
0.1,
1.1,
2.2,
3.3,
],
c: 'Hi',
}
## serialize make_map from bindings
> Snapshot 1
{
a: 1,
b: 2,
c: 3,
}
## serialize make_bytes_struct from bindings
> Snapshot 1
{
code: Buffer @Uint8Array [
00010203
],
map: 'source map',
}
2020-08-26 01:07:27 +09:00
## serialize make_object from bindings
> Snapshot 1
{
a: 1,
b: [
1,
2,
],
c: 'abc',
d: false,
e: null,
f: null,
g: [
9,
false,
'efg',
],
h: '🤷',
i: 'Empty',
j: [
27,
'hij',
],
k: {
a: 128,
b: [
9,
8,
7,
],
},
l: 'jkl',
m: [
0,
1,
2,
3,
4,
],
o: {
Value: [
'z',
'y',
'x',
],
},
p: [
1,
2,
3.5,
],
q: 9998881288248882845242411222333n,
r: -340282363588614574563373375108745990111n,
}