MCPcopy
hub / github.com/sequelize/sequelize / formatDate

Function formatDate

test/integration/model.test.js:1533–1533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1531 expect(users[1].username).to.equal('Paul');
1532
1533 const formatDate = val => moment(new Date(val)).utc().format('YYYY-MM-DD h:mm');
1534
1535 expect(formatDate(users[0].deletedAt)).to.equal(date);
1536 expect(formatDate(users[1].deletedAt)).to.equal(date);

Callers 1

model.test.jsFile · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected