napi-rs/examples/napi-compat-mode/__tests__/serde/ser.spec.ts.md
forehal a781a4f27e feat(cli): brand new cli tool with both cli and programmatical usage (#1492)
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
2023-04-06 11:04:53 +08:00

1.8 KiB

Snapshot report for examples/napi-compat-mode/__test__/serde/ser.spec.ts

The actual snapshot is saved in ser.spec.ts.snap.

Generated by AVA.

serialize make_num_77 from bindings

Snapshot 1

77

serialize make_num_32 from bindings

Snapshot 1

32

serialize make_str_hello from bindings

Snapshot 1

'Hello World'

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
]

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',
}

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,
}