@@ -586,6 +586,7 @@ describe('odata message composition', () => {
586
586
. then ( ( stream ) => stream . pipe ( streamTest . toText ( ( _ , result ) => {
587
587
const resultObj = JSON . parse ( result ) ;
588
588
resultObj [ '@odata.nextLink' ] . should . equal ( 'http://localhost:8989/simple.svc/Submissions?%24top=3&%24skiptoken=01e30%3D' ) ;
589
+ resultObj [ '@odata.nextLink' ] . should . have . skiptoken ( { } ) ;
589
590
done ( ) ;
590
591
} ) ) ) ;
591
592
} ) ;
@@ -598,6 +599,7 @@ describe('odata message composition', () => {
598
599
. then ( ( stream ) => stream . pipe ( streamTest . toText ( ( _ , result ) => {
599
600
const resultObj = JSON . parse ( result ) ;
600
601
resultObj [ '@odata.nextLink' ] . should . equal ( 'http://localhost:8989/simple.svc/Submissions?%24top=3&%24wkt=true&%24count=true&%24skiptoken=01e30%3D' ) ;
602
+ resultObj [ '@odata.nextLink' ] . should . have . skiptoken ( { } ) ;
601
603
done ( ) ;
602
604
} ) ) ) ;
603
605
} ) ;
@@ -748,7 +750,8 @@ describe('odata message composition', () => {
748
750
fieldsFor ( testData . forms . withrepeat )
749
751
. then ( ( fields ) => rowStreamToOData ( fields , 'Submissions.children.child' , 'http://localhost:8989' , '/withrepeat.svc/Submissions.children.child?$top=2' , query , inRows ) )
750
752
. then ( ( stream ) => stream . pipe ( streamTest . toText ( ( _ , result ) => {
751
- JSON . parse ( result ) . should . eql ( {
753
+ const parsed = JSON . parse ( result ) ;
754
+ parsed . should . eql ( {
752
755
'@odata.context' : 'http://localhost:8989/withrepeat.svc/$metadata#Submissions.children.child' ,
753
756
'@odata.nextLink' : 'http://localhost:8989/withrepeat.svc/Submissions.children.child?%24top=2&%24skiptoken=01eyJyZXBlYXRJZCI6ImM3NmQwY2NjNmQ1ZGEyMzZiZTdiOTNiOTg1YTgwNDEzZDJlM2UxNzIifQ%3D%3D' ,
754
757
value : [ {
@@ -763,6 +766,7 @@ describe('odata message composition', () => {
763
766
age : 6
764
767
} ]
765
768
} ) ;
769
+ parsed [ '@odata.nextLink' ] . should . have . skiptoken ( { repeatId : 'c76d0ccc6d5da236be7b93b985a80413d2e3e172' } ) ;
766
770
done ( ) ;
767
771
} ) ) ) ;
768
772
} ) ;
@@ -805,7 +809,8 @@ describe('odata message composition', () => {
805
809
fieldsFor ( testData . forms . withrepeat )
806
810
. then ( ( fields ) => rowStreamToOData ( fields , 'Submissions.children.child' , 'http://localhost:8989' , '/withrepeat.svc/Submissions.children.child?$skip=1&$top=1' , query , inRows ) )
807
811
. then ( ( stream ) => stream . pipe ( streamTest . toText ( ( _ , result ) => {
808
- JSON . parse ( result ) . should . eql ( {
812
+ const parsed = JSON . parse ( result ) ;
813
+ parsed . should . eql ( {
809
814
'@odata.context' : 'http://localhost:8989/withrepeat.svc/$metadata#Submissions.children.child' ,
810
815
'@odata.nextLink' : 'http://localhost:8989/withrepeat.svc/Submissions.children.child?%24top=1&%24skiptoken=01eyJyZXBlYXRJZCI6ImM3NmQwY2NjNmQ1ZGEyMzZiZTdiOTNiOTg1YTgwNDEzZDJlM2UxNzIifQ%3D%3D' ,
811
816
value : [ {
@@ -815,6 +820,7 @@ describe('odata message composition', () => {
815
820
age : 6
816
821
} ]
817
822
} ) ;
823
+ parsed [ '@odata.nextLink' ] . should . have . skiptoken ( { repeatId : 'c76d0ccc6d5da236be7b93b985a80413d2e3e172' } ) ;
818
824
done ( ) ;
819
825
} ) ) ) ;
820
826
} ) ;
@@ -1063,6 +1069,7 @@ describe('odata message composition', () => {
1063
1069
. then ( JSON . parse )
1064
1070
. then ( ( result ) => {
1065
1071
result [ '@odata.nextLink' ] . should . equal ( "http://localhost:8989/withrepeat.svc/Submissions('two')/children/child?%24top=1&%24wkt=true&%24skiptoken=01eyJyZXBlYXRJZCI6ImNmOWExYjVjYzgzYzZkNjI3MGMxZWI5ODg2MGQyOTRlYWM1ZDUyNmQifQ%3D%3D" ) ;
1072
+ result [ '@odata.nextLink' ] . should . have . skiptoken ( { repeatId : 'cf9a1b5cc83c6d6270c1eb98860d294eac5d526d' } ) ;
1066
1073
} ) ;
1067
1074
} ) ;
1068
1075
} ) ;
0 commit comments