Skip to content

Commit

Permalink
Fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Feb 14, 2024
1 parent 77a27a0 commit d11283a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
36 changes: 18 additions & 18 deletions packages/seroval/test/__snapshots__/boxed-number.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ exports[`boxed number > crossSerializeStream > scoped > supports boxed -0 1`] =

exports[`boxed number > crossSerializeStream > scoped > supports boxed -0 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(-0)))($R["example"])"`;

exports[`boxed number > crossSerializeStream > scoped > supports boxed -Infinity 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;
exports[`boxed number > crossSerializeStream > scoped > supports boxed Number.NEGATIVE_INFINITY 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;

exports[`boxed number > crossSerializeStream > scoped > supports boxed -Infinity 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(-1/0)))($R["example"])"`;
exports[`boxed number > crossSerializeStream > scoped > supports boxed Number.NEGATIVE_INFINITY 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(-1/0)))($R["example"])"`;

exports[`boxed number > crossSerializeStream > scoped > supports boxed Infinity 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;
exports[`boxed number > crossSerializeStream > scoped > supports boxed Number.NaN 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;

exports[`boxed number > crossSerializeStream > scoped > supports boxed Infinity 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(1/0)))($R["example"])"`;
exports[`boxed number > crossSerializeStream > scoped > supports boxed Number.NaN 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(0/0)))($R["example"])"`;

exports[`boxed number > crossSerializeStream > scoped > supports boxed NaN 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;
exports[`boxed number > crossSerializeStream > scoped > supports boxed Number.POSITIVE_INFINITY 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;

exports[`boxed number > crossSerializeStream > scoped > supports boxed NaN 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(0/0)))($R["example"])"`;
exports[`boxed number > crossSerializeStream > scoped > supports boxed Number.POSITIVE_INFINITY 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(1/0)))($R["example"])"`;

exports[`boxed number > crossSerializeStream > scoped > supports boxed numbers 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;

Expand All @@ -64,17 +64,17 @@ exports[`boxed number > crossSerializeStream > supports boxed -0 1`] = `"$R[0]=(

exports[`boxed number > crossSerializeStream > supports boxed -0 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(-0))"`;

exports[`boxed number > crossSerializeStream > supports boxed -Infinity 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;
exports[`boxed number > crossSerializeStream > supports boxed Number.NEGATIVE_INFINITY 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

exports[`boxed number > crossSerializeStream > supports boxed -Infinity 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(-1/0))"`;
exports[`boxed number > crossSerializeStream > supports boxed Number.NEGATIVE_INFINITY 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(-1/0))"`;

exports[`boxed number > crossSerializeStream > supports boxed Infinity 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;
exports[`boxed number > crossSerializeStream > supports boxed Number.NaN 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

exports[`boxed number > crossSerializeStream > supports boxed Infinity 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(1/0))"`;
exports[`boxed number > crossSerializeStream > supports boxed Number.NaN 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(0/0))"`;

exports[`boxed number > crossSerializeStream > supports boxed NaN 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;
exports[`boxed number > crossSerializeStream > supports boxed Number.POSITIVE_INFINITY 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

exports[`boxed number > crossSerializeStream > supports boxed NaN 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(0/0))"`;
exports[`boxed number > crossSerializeStream > supports boxed Number.POSITIVE_INFINITY 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=Object(1/0))"`;

exports[`boxed number > crossSerializeStream > supports boxed numbers 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

Expand Down Expand Up @@ -104,17 +104,17 @@ exports[`boxed number > toCrossJSONStream > supports boxed -0 1`] = `"{"t":22,"i

exports[`boxed number > toCrossJSONStream > supports boxed -0 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":21,"i":2,"f":{"t":2,"s":4}}]}"`;

exports[`boxed number > toCrossJSONStream > supports boxed -Infinity 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;
exports[`boxed number > toCrossJSONStream > supports boxed Number.NEGATIVE_INFINITY 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

exports[`boxed number > toCrossJSONStream > supports boxed -Infinity 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":21,"i":2,"f":{"t":2,"s":6}}]}"`;
exports[`boxed number > toCrossJSONStream > supports boxed Number.NEGATIVE_INFINITY 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":21,"i":2,"f":{"t":2,"s":6}}]}"`;

exports[`boxed number > toCrossJSONStream > supports boxed Infinity 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;
exports[`boxed number > toCrossJSONStream > supports boxed Number.NaN 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

exports[`boxed number > toCrossJSONStream > supports boxed Infinity 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":21,"i":2,"f":{"t":2,"s":5}}]}"`;
exports[`boxed number > toCrossJSONStream > supports boxed Number.NaN 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":21,"i":2,"f":{"t":2,"s":7}}]}"`;

exports[`boxed number > toCrossJSONStream > supports boxed NaN 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;
exports[`boxed number > toCrossJSONStream > supports boxed Number.POSITIVE_INFINITY 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

exports[`boxed number > toCrossJSONStream > supports boxed NaN 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":21,"i":2,"f":{"t":2,"s":7}}]}"`;
exports[`boxed number > toCrossJSONStream > supports boxed Number.POSITIVE_INFINITY 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":21,"i":2,"f":{"t":2,"s":5}}]}"`;

exports[`boxed number > toCrossJSONStream > supports boxed numbers 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

Expand Down
24 changes: 12 additions & 12 deletions packages/seroval/test/__snapshots__/number.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ exports[`number > crossSerializeStream > supports -0 1`] = `"$R[0]=($R[1]=(s,f,p

exports[`number > crossSerializeStream > supports -0 2`] = `"($R[2]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],-0)"`;

exports[`number > crossSerializeStream > supports -Infinity 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;
exports[`number > crossSerializeStream > supports Number.NEGATIVE_INFINITY 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

exports[`number > crossSerializeStream > supports -Infinity 2`] = `"($R[2]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],-1/0)"`;
exports[`number > crossSerializeStream > supports Number.NEGATIVE_INFINITY 2`] = `"($R[2]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],-1/0)"`;

exports[`number > crossSerializeStream > supports Infinity 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;
exports[`number > crossSerializeStream > supports Number.NaN 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

exports[`number > crossSerializeStream > supports Infinity 2`] = `"($R[2]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],1/0)"`;
exports[`number > crossSerializeStream > supports Number.NaN 2`] = `"($R[2]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],0/0)"`;

exports[`number > crossSerializeStream > supports NaN 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;
exports[`number > crossSerializeStream > supports Number.POSITIVE_INFINITY 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

exports[`number > crossSerializeStream > supports NaN 2`] = `"($R[2]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],0/0)"`;
exports[`number > crossSerializeStream > supports Number.POSITIVE_INFINITY 2`] = `"($R[2]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],1/0)"`;

exports[`number > crossSerializeStream > supports numbers 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

Expand Down Expand Up @@ -64,17 +64,17 @@ exports[`number > toCrossJSONStream > supports -0 1`] = `"{"t":22,"i":0,"f":{"t"

exports[`number > toCrossJSONStream > supports -0 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":2,"s":2},{"t":2,"s":4}]}"`;

exports[`number > toCrossJSONStream > supports -Infinity 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;
exports[`number > toCrossJSONStream > supports Number.NEGATIVE_INFINITY 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

exports[`number > toCrossJSONStream > supports -Infinity 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":2,"s":2},{"t":2,"s":6}]}"`;
exports[`number > toCrossJSONStream > supports Number.NEGATIVE_INFINITY 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":2,"s":2},{"t":2,"s":6}]}"`;

exports[`number > toCrossJSONStream > supports Infinity 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;
exports[`number > toCrossJSONStream > supports Number.NaN 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

exports[`number > toCrossJSONStream > supports Infinity 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":2,"s":2},{"t":2,"s":5}]}"`;
exports[`number > toCrossJSONStream > supports Number.NaN 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":2,"s":2},{"t":2,"s":7}]}"`;

exports[`number > toCrossJSONStream > supports NaN 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;
exports[`number > toCrossJSONStream > supports Number.POSITIVE_INFINITY 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

exports[`number > toCrossJSONStream > supports NaN 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":2,"s":2},{"t":2,"s":7}]}"`;
exports[`number > toCrossJSONStream > supports Number.POSITIVE_INFINITY 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":2,"s":2},{"t":2,"s":5}]}"`;

exports[`number > toCrossJSONStream > supports numbers 1`] = `"{"t":22,"i":0,"f":{"t":26,"i":1,"s":1}}"`;

Expand Down

0 comments on commit d11283a

Please sign in to comment.