ngMock.angular.mock.TzDate

Improve this Doc View Source angular.mock.TzDate

  1. type in module ngMock

NOTE: this is not an injectable instance, just a globally available mock class of Date.

Mock of the Date type which has its timezone specified via constructor arg.

The main purpose is to create Date-like instances with timezone fixed to the specifie