mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +00:00 
			
		
		
		
	fix: relations test relation disconnect breaking other relations
This commit is contained in:
		
							parent
							
								
									ee2cd841c9
								
							
						
					
					
						commit
						2d63671daa
					
				| @ -686,11 +686,11 @@ describe('Relations', () => { | |||||||
|         populate: populateShop, |         populate: populateShop, | ||||||
|       }); |       }); | ||||||
| 
 | 
 | ||||||
|       // shop2 relations should be unchanged (content-manager relations are shown in reverse order)
 |       // shop2 relations should be unchanged
 | ||||||
|       expect(updatedShop2.products_om).toMatchObject([{ id: id2 }, { id: id1 }]); |       expect(updatedShop2.products_om).toMatchObject([{ id: id1 }, { id: id2 }]); | ||||||
|       expect(updatedShop2.products_mm).toMatchObject([{ id: id2 }, { id: id1 }]); |       expect(updatedShop2.products_mm).toMatchObject([{ id: id1 }, { id: id2 }]); | ||||||
|       expect(updatedShop2.products_mw).toMatchObject([{ id: id2 }, { id: id1 }]); |       expect(updatedShop2.products_mw).toMatchObject([{ id: id1 }, { id: id2 }]); | ||||||
|       expect(updatedShop2.myCompo.compo_products_mw).toMatchObject([{ id: id2 }, { id: id1 }]); |       expect(updatedShop2.myCompo.compo_products_mw).toMatchObject([{ id: id1 }, { id: id2 }]); | ||||||
|     }); |     }); | ||||||
|   }); |   }); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Marc-Roig
						Marc-Roig