Skip to content

Update sinon version to 4.0#12476

Merged
rsimha merged 2 commits intoampproject:masterfrom
rsimha:2017-12-14-UpgradeSinon
Dec 15, 2017
Merged

Update sinon version to 4.0#12476
rsimha merged 2 commits intoampproject:masterfrom
rsimha:2017-12-14-UpgradeSinon

Conversation

@rsimha
Copy link
Copy Markdown
Contributor

@rsimha rsimha commented Dec 14, 2017

This PR updates the sinon library used by the AMP tests from version 2 to version 4. It also fixes the numerous invalid stub calls found in the tests.

Invalid:

sinon.stub(obj, "method", func)

Valid:

sinon.stub(obj, "method").callsFake(func)

See http://sinonjs.org/releases/v3.0.0/migrating-to-3.0/

Partial fix for #12181

@rsimha
Copy link
Copy Markdown
Contributor Author

rsimha commented Dec 15, 2017

/to @erwinmombay @choumx

@rsimha rsimha requested a review from jridgewell December 15, 2017 03:21
@rsimha rsimha self-assigned this Dec 15, 2017
@rsimha
Copy link
Copy Markdown
Contributor Author

rsimha commented Dec 15, 2017

/to @jridgewell

@rsimha rsimha merged commit a6a4a3b into ampproject:master Dec 15, 2017
@rsimha rsimha deleted the 2017-12-14-UpgradeSinon branch December 15, 2017 15:23
gzgogo pushed a commit to gzgogo/amphtml that referenced this pull request Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants