@@ -907,40 +907,6 @@ apiDescribe('Pipelines', persistence => {
907907 const proto = _internalPipelineToExecutePipelineRequestProto ( pipeline ) ;
908908 expect ( proto ) . not . to . be . null ;
909909 } ) ;
910-
911- // TODO(pipeline) support converter
912- // it('pipeline converter works', async () => {
913- // interface AppModel {myTitle: string; myAuthor: string; myPublished: number}
914- // const converter: FirestorePipelineConverter<AppModel> = {
915- // fromFirestore(result: FirebaseFirestore.PipelineResult): AppModel {
916- // return {
917- // myTitle: result.data()!.title as string,
918- // myAuthor: result.data()!.author as string,
919- // myPublished: result.data()!.published as number,
920- // };
921- // },
922- // };
923- //
924- // const results = await firestore
925- // .pipeline()
926- // .collection(randomCol.path)
927- // .sort(Field.of('published').ascending())
928- // .limit(2)
929- // .withConverter(converter)
930- // .execute();
931- //
932- // const objs = results.map(r => r.data());
933- // expect(objs[0]).to.deep.equal({
934- // myAuthor: 'Jane Austen',
935- // myPublished: 1813,
936- // myTitle: 'Pride and Prejudice',
937- // });
938- // expect(objs[1]).to.deep.equal({
939- // myAuthor: 'Fyodor Dostoevsky',
940- // myPublished: 1866,
941- // myTitle: 'Crime and Punishment',
942- // });
943- // });
944910 } ) ;
945911
946912 describe ( 'modular API' , ( ) => {
0 commit comments