mol_vary 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.test.js CHANGED
@@ -4769,8 +4769,10 @@ var $;
4769
4769
  check(new Set([7, 'foo']), [tupl | 1, text | 3, ...str('set'), list | 2, 7, text | 3, ...str('foo')]);
4770
4770
  },
4771
4771
  "vary pack Date"($) {
4772
- const date = new Date('2025-01-02T03:04:05.678');
4773
- check(date, [tupl | 1, text | 9, ...str('unix_time'), fp64, ...new Uint8Array(new Float64Array([date.valueOf() / 1000]).buffer)]);
4772
+ const date1 = new Date('2025-01-02T03:04:05');
4773
+ check(date1, [tupl | 1, text | 9, ...str('unix_time'), uint | l4, ...new Uint8Array(new Uint32Array([date1.valueOf() / 1000]).buffer)]);
4774
+ const date2 = new Date('2025-01-02T03:04:05.678');
4775
+ check(date2, [tupl | 1, text | 9, ...str('unix_time'), fp64, ...new Uint8Array(new Float64Array([date2.valueOf() / 1000]).buffer)]);
4774
4776
  },
4775
4777
  "vary pack custom class"($) {
4776
4778
  class Foo {