diff --git a/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js b/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js index a4ccd05ac..aacb2d42d 100644 --- a/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js +++ b/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js @@ -23,7 +23,7 @@ describe('Supplier newSupplier()', () => { expect(createdSupplier.phone).toBeNull(); expect(createdSupplier.retAccount).toBeNull(); expect(createdSupplier.commission).toBeFalse(); - expect(createdSupplier.created).toBeLessThanOrEqual(new Date); + expect(createdSupplier.created).toBeDefined(); expect(createdSupplier.postcodeFk).toBeNull(); expect(createdSupplier.isActive).toBeTrue(); expect(createdSupplier.isOfficial).toBeTrue();