@@ -77,7 +77,7 @@ void describe('MongoDB Compatibility Tests', () => {
77
77
const pongoCollection = pongoDb . collection < User > ( 'testCollection' ) ;
78
78
const mongoCollection = mongoDb . collection < User > ( 'testCollection' ) ;
79
79
80
- const doc = { name : 'Alice ' , age : 25 } ;
80
+ const doc = { name : 'Anita ' , age : 25 } ;
81
81
82
82
const pongoInsertResult = await pongoCollection . insertOne ( doc ) ;
83
83
const mongoInsertResult = await mongoCollection . insertOne ( doc ) ;
@@ -109,7 +109,7 @@ void describe('MongoDB Compatibility Tests', () => {
109
109
void it ( 'should update a document in both PostgreSQL and MongoDB' , async ( ) => {
110
110
const pongoCollection = pongoDb . collection < User > ( 'testCollection' ) ;
111
111
const mongoCollection = mongoDb . collection < User > ( 'testCollection' ) ;
112
- const doc = { name : 'Bob ' , age : 30 } ;
112
+ const doc = { name : 'Roger ' , age : 30 } ;
113
113
114
114
const pongoInsertResult = await pongoCollection . insertOne ( doc ) ;
115
115
const mongoInsertResult = await mongoCollection . insertOne ( doc ) ;
@@ -149,7 +149,7 @@ void describe('MongoDB Compatibility Tests', () => {
149
149
void it ( 'should delete a document from both PostgreSQL and MongoDB' , async ( ) => {
150
150
const pongoCollection = pongoDb . collection < User > ( 'testCollection' ) ;
151
151
const mongoCollection = mongoDb . collection < User > ( 'testCollection' ) ;
152
- const doc = { name : 'Charlie ' , age : 35 } ;
152
+ const doc = { name : 'Cruella ' , age : 35 } ;
153
153
154
154
const pongoInsertResult = await pongoCollection . insertOne ( doc ) ;
155
155
const mongoInsertResult = await mongoCollection . insertOne ( doc ) ;
@@ -278,17 +278,17 @@ void describe('MongoDB Compatibility Tests', () => {
278
278
279
279
const docs = [
280
280
{
281
- name : 'Alice ' ,
281
+ name : 'Anita ' ,
282
282
age : 25 ,
283
283
address : { city : 'Wonderland' , street : 'Main St' } ,
284
284
} ,
285
285
{
286
- name : 'Bob ' ,
286
+ name : 'Roger ' ,
287
287
age : 30 ,
288
288
address : { city : 'Wonderland' , street : 'Elm St' } ,
289
289
} ,
290
290
{
291
- name : 'Charlie ' ,
291
+ name : 'Cruella ' ,
292
292
age : 35 ,
293
293
address : { city : 'Dreamland' , street : 'Oak St' } ,
294
294
} ,
@@ -329,17 +329,17 @@ void describe('MongoDB Compatibility Tests', () => {
329
329
330
330
const docs = [
331
331
{
332
- name : 'Alice ' ,
332
+ name : 'Anita ' ,
333
333
age : 25 ,
334
334
address : { city : 'Wonderland' , street : 'Main St' } ,
335
335
} ,
336
336
{
337
- name : 'Bob ' ,
337
+ name : 'Roger ' ,
338
338
age : 30 ,
339
339
address : { city : 'Wonderland' , street : 'Elm St' } ,
340
340
} ,
341
341
{
342
- name : 'Charlie ' ,
342
+ name : 'Cruella ' ,
343
343
age : 35 ,
344
344
address : { city : 'Dreamland' , street : 'Oak St' } ,
345
345
} ,
@@ -380,9 +380,9 @@ void describe('MongoDB Compatibility Tests', () => {
380
380
const mongoCollection = mongoDb . collection < User > ( 'testCollection' ) ;
381
381
382
382
const docs = [
383
- { name : 'Alice ' , age : 25 , tags : [ 'tag1' , 'tag2' ] } ,
384
- { name : 'Bob ' , age : 30 , tags : [ 'tag2' , 'tag3' ] } ,
385
- { name : 'Charlie ' , age : 35 , tags : [ 'tag1' , 'tag3' ] } ,
383
+ { name : 'Anita ' , age : 25 , tags : [ 'tag1' , 'tag2' ] } ,
384
+ { name : 'Roger ' , age : 30 , tags : [ 'tag2' , 'tag3' ] } ,
385
+ { name : 'Cruella ' , age : 35 , tags : [ 'tag1' , 'tag3' ] } ,
386
386
] ;
387
387
388
388
await pongoCollection . insertOne ( docs [ 0 ] ! ) ;
@@ -407,9 +407,9 @@ void describe('MongoDB Compatibility Tests', () => {
407
407
const mongoCollection = mongoDb . collection < User > ( 'testCollection' ) ;
408
408
409
409
const docs = [
410
- { name : 'Alice ' , age : 25 , tags : [ 'tag1' , 'tag2' ] } ,
411
- { name : 'Bob ' , age : 30 , tags : [ 'tag2' , 'tag3' ] } ,
412
- { name : 'Charlie ' , age : 35 , tags : [ 'tag1' , 'tag3' ] } ,
410
+ { name : 'Anita ' , age : 25 , tags : [ 'tag1' , 'tag2' ] } ,
411
+ { name : 'Roger ' , age : 30 , tags : [ 'tag2' , 'tag3' ] } ,
412
+ { name : 'Cruella ' , age : 35 , tags : [ 'tag1' , 'tag3' ] } ,
413
413
] ;
414
414
415
415
await pongoCollection . insertOne ( docs [ 0 ] ! ) ;
@@ -438,9 +438,9 @@ void describe('MongoDB Compatibility Tests', () => {
438
438
const mongoCollection = mongoDb . collection < User > ( 'testCollection' ) ;
439
439
440
440
const docs = [
441
- { name : 'Alice ' , age : 25 , tags : [ 'tag1' , 'tag2' ] } ,
442
- { name : 'Bob ' , age : 30 , tags : [ 'tag2' , 'tag3' ] } ,
443
- { name : 'Charlie ' , age : 35 , tags : [ 'tag1' , 'tag3' ] } ,
441
+ { name : 'Anita ' , age : 25 , tags : [ 'tag1' , 'tag2' ] } ,
442
+ { name : 'Roger ' , age : 30 , tags : [ 'tag2' , 'tag3' ] } ,
443
+ { name : 'Cruella ' , age : 35 , tags : [ 'tag1' , 'tag3' ] } ,
444
444
] ;
445
445
446
446
await pongoCollection . insertOne ( docs [ 0 ] ! ) ;
@@ -464,13 +464,13 @@ void describe('MongoDB Compatibility Tests', () => {
464
464
) ;
465
465
} ) ;
466
466
467
- void it . skip ( 'should find documents with a nested array element match filter in both PostgreSQL and MongoDB' , async ( ) => {
467
+ void it ( 'should find documents with a nested array element match filter in both PostgreSQL and MongoDB' , async ( ) => {
468
468
const pongoCollection = pongoDb . collection < User > ( 'testCollection' ) ;
469
469
const mongoCollection = mongoDb . collection < User > ( 'testCollection' ) ;
470
470
471
471
const docs = [
472
472
{
473
- name : 'Alice ' ,
473
+ name : 'Anita ' ,
474
474
age : 25 ,
475
475
address : {
476
476
city : 'Wonderland' ,
@@ -479,7 +479,7 @@ void describe('MongoDB Compatibility Tests', () => {
479
479
} ,
480
480
} ,
481
481
{
482
- name : 'Bob ' ,
482
+ name : 'Roger ' ,
483
483
age : 30 ,
484
484
address : {
485
485
city : 'Wonderland' ,
@@ -488,7 +488,7 @@ void describe('MongoDB Compatibility Tests', () => {
488
488
} ,
489
489
} ,
490
490
{
491
- name : 'Charlie ' ,
491
+ name : 'Cruella ' ,
492
492
age : 35 ,
493
493
address : {
494
494
city : 'Dreamland' ,
0 commit comments