Open LearningProcesss opened 1 year ago
Better interfacce mock? Reflect JavaScript construct
expect(dto).toEqual( expect.objectContaining({ userid: expect.any(Number), total: expect.any(Number), page: expect.any(Number), username: expect.any(String), }) );
Better interfacce mock? Reflect JavaScript construct
expect(dto).toEqual( expect.objectContaining({ userid: expect.any(Number), total: expect.any(Number), page: expect.any(Number), username: expect.any(String), }) );