Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
Test a string is datetime compatible with Cypress

I have an API that returns JSON with datetime fields.

{
  ...
  "createdAt": "2021-11-01T12:08:05.334Z",
  "createdUser": "dev",
  "updatedAt": "2021-11-01T12:10:59.000Z",
  "updatedUser": "dev",
  "versionFlag": 3
}

I need to write a test that the above datetime fields are in correct format. (Just correct format that represents a correct timestamp. no need to verify the value)

expect(markerTypeInfo.createdAt).to.be.a('Date') is failing because the input is in string type. How this is done properly?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda