Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

TimezoneJS should be a little bit more robust when test frameworks wrap the Date constructor. #80

Merged
merged 1 commit into from
May 6, 2013

Conversation

elarkin
Copy link
Contributor

@elarkin elarkin commented May 6, 2013

No longer failing to detect dates when test frameworks overwrite the Date constructor (poorly)

Specifically, SinonJS overwrites the Date constructor with a function that produces date objects
whose constructor property is the original Date constructor, while Date currently refers to the Sinon wrapper.

That hullabaloo makes a.constructor !== Date end up true when it should be false.

…Date constructor (poorly)

Specifically, SinonJS overwrites the Date constructor with a function that produces date objects
whose constructor property is the original Date constructor, while Date currently refers to the Sinon wrapper.

That hullabaloo makes a.constructor !== Date end up true when it should be false.
longlho added a commit that referenced this pull request May 6, 2013
TimezoneJS should be a little bit more robust when test frameworks wrap the Date constructor.
@longlho longlho merged commit 92c743a into mde:master May 6, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants