@@ -7,7 +7,7 @@ describe("decodeAsync", () => {
77 }
88
99 it ( "decodes nil" , async ( ) => {
10- const createStream = async function * ( ) {
10+ const createStream = async function * ( ) {
1111 yield wrapWithNoisyBuffer ( 0xc0 ) ; // nil
1212 } ;
1313
@@ -16,7 +16,7 @@ describe("decodeAsync", () => {
1616 } ) ;
1717
1818 it ( "decodes fixarray [nil]" , async ( ) => {
19- const createStream = async function * ( ) {
19+ const createStream = async function * ( ) {
2020 yield wrapWithNoisyBuffer ( 0x91 ) ; // fixarray size=1
2121 yield [ 0xc0 ] ; // nil
2222 } ;
@@ -26,7 +26,7 @@ describe("decodeAsync", () => {
2626 } ) ;
2727
2828 it ( "decodes fixmap {'foo': 'bar'}" , async ( ) => {
29- const createStream = async function * ( ) {
29+ const createStream = async function * ( ) {
3030 yield [ 0x81 ] ; // fixmap size=1
3131 yield encode ( "foo" ) ;
3232 yield encode ( "bar" ) ;
@@ -37,7 +37,7 @@ describe("decodeAsync", () => {
3737 } ) ;
3838
3939 it ( "decodes multi-byte integer byte-by-byte" , async ( ) => {
40- const createStream = async function * ( ) {
40+ const createStream = async function * ( ) {
4141 yield [ 0xcd ] ; // uint 16
4242 yield [ 0x12 ] ;
4343 yield [ 0x34 ] ;
@@ -47,7 +47,7 @@ describe("decodeAsync", () => {
4747 } ) ;
4848
4949 it ( "decodes fixstr byte-by-byte" , async ( ) => {
50- const createStream = async function * ( ) {
50+ const createStream = async function * ( ) {
5151 yield [ 0xa3 ] ; // fixstr size=3
5252 yield [ 0x66 ] ; // "f"
5353 yield [ 0x6f ] ; // "o"
@@ -58,7 +58,7 @@ describe("decodeAsync", () => {
5858 } ) ;
5959
6060 it ( "decodes binary byte-by-byte" , async ( ) => {
61- const createStream = async function * ( ) {
61+ const createStream = async function * ( ) {
6262 yield [ 0xc4 ] ; // bin 8
6363 yield [ 0x03 ] ; // bin size=3
6464 yield [ 0x66 ] ; // "f"
@@ -70,7 +70,7 @@ describe("decodeAsync", () => {
7070 } ) ;
7171
7272 it ( "decodes binary with noisy buffer" , async ( ) => {
73- const createStream = async function * ( ) {
73+ const createStream = async function * ( ) {
7474 yield wrapWithNoisyBuffer ( 0xc5 ) ; // bin 16
7575 yield [ 0x00 ] ;
7676 yield [ 0x00 ] ; // bin size=0
@@ -100,7 +100,7 @@ describe("decodeAsync", () => {
100100 bin0 : Uint8Array . from ( [ ] ) ,
101101 } ;
102102
103- const createStream = async function * ( ) {
103+ const createStream = async function * ( ) {
104104 for ( const byte of encode ( object ) ) {
105105 yield [ byte ] ;
106106 }
0 commit comments