File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
packages/convex-helpers/server Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -748,15 +748,6 @@ describe("stream", () => {
748748 expect ( page1 . page . map ( stripSystemFields ) ) . toEqual ( [ { a : 1 , b : 3 , c : 5 } ] ) ;
749749 } ) ;
750750 } ) ;
751- test ( "undefined cursor serialization roundtrips" , async ( ) => {
752- const schema = defineSchema ( {
753- foo : defineTable ( {
754- a : v . optional ( v . number ( ) ) ,
755- b : v . number ( ) ,
756- } ) . index ( "ab" , [ "a" , "b" ] ) ,
757- } ) ;
758- } ) ;
759-
760751 test ( "undefined cursor serialization roundtrips" , async ( ) => {
761752 const schema = defineSchema ( {
762753 foo : defineTable ( {
@@ -787,12 +778,10 @@ describe("stream", () => {
787778 ] ) ;
788779 expect ( page1 . isDone ) . toBe ( false ) ;
789780 const page2 = await query . paginate ( {
790- numItems : 1 ,
781+ numItems : 2 ,
791782 cursor : page1 . continueCursor ,
792783 } ) ;
793- expect ( page2 . page . map ( stripSystemFields ) ) . toEqual ( [
794- { a : undefined , b : 5 } ,
795- ] ) ;
784+ expect ( page2 . page . map ( stripSystemFields ) ) . toEqual ( [ { a : 2 , b : 4 } ] ) ;
796785 expect ( page2 . isDone ) . toBe ( true ) ;
797786 } ) ;
798787 } ) ;
You can’t perform that action at this time.
0 commit comments