@@ -998,36 +998,44 @@ describe('Composite parser', function() {
998998 describe ( 'SaveOffset' , ( ) => {
999999 it ( 'should save the offset' , ( ) => {
10001000 const buff = Buffer . from ( [ 0x01 , 0x00 , 0x02 ] ) ;
1001- const parser = Parser . start ( ) . int8 ( 'a' ) . int16 ( 'b' ) . saveoffset ( 'bytesRead' ) ;
1001+ const parser = Parser . start ( )
1002+ . int8 ( 'a' )
1003+ . int16 ( 'b' )
1004+ . saveoffset ( 'bytesRead' ) ;
10021005
10031006 assert . deepEqual ( parser . parse ( buff ) , {
10041007 a : 1 ,
10051008 b : 2 ,
10061009 bytesRead : 3 ,
1007- } )
1008- } )
1010+ } ) ;
1011+ } ) ;
10091012
10101013 it ( 'should save the offset if not at end' , ( ) => {
10111014 const buff = Buffer . from ( [ 0x01 , 0x00 , 0x02 ] ) ;
1012- const parser = Parser . start ( ) . int8 ( 'a' ) . saveoffset ( 'bytesRead' ) . int16 ( 'b' ) ;
1015+ const parser = Parser . start ( )
1016+ . int8 ( 'a' )
1017+ . saveoffset ( 'bytesRead' )
1018+ . int16 ( 'b' ) ;
10131019
10141020 assert . deepEqual ( parser . parse ( buff ) , {
10151021 a : 1 ,
10161022 b : 2 ,
10171023 bytesRead : 1 ,
1018- } )
1019- } )
1024+ } ) ;
1025+ } ) ;
10201026
10211027 it ( 'should save the offset with a dynamic parser' , ( ) => {
10221028 const buff = Buffer . from ( [ 0x74 , 0x65 , 0x73 , 0x74 , 0x00 ] ) ;
1023- const parser = Parser . start ( ) . string ( 'name' , { zeroTerminated : true } ) . saveoffset ( 'bytesRead' ) ;
1029+ const parser = Parser . start ( )
1030+ . string ( 'name' , { zeroTerminated : true } )
1031+ . saveoffset ( 'bytesRead' ) ;
10241032
10251033 assert . deepEqual ( parser . parse ( buff ) , {
10261034 name : 'test' ,
10271035 bytesRead : 5 ,
1028- } )
1029- } )
1030- } )
1036+ } ) ;
1037+ } ) ;
1038+ } ) ;
10311039
10321040 describe ( 'Utilities' , function ( ) {
10331041 it ( 'should count size for fixed size structs' , function ( ) {
0 commit comments