Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade sinon to 3.x #1491

Merged
merged 14 commits into from
Sep 5, 2017
Merged

Upgrade sinon to 3.x #1491

merged 14 commits into from
Sep 5, 2017

Conversation

dbemiller
Copy link
Contributor

@dbemiller dbemiller commented Aug 16, 2017

Type of change

Dependency upgrade

Description of change

Upgrading sinon to the latest version. Updating lots of tests to use the newer APIs.

Also includes some code to make proper mocks within an individual test easier. The update exposed some tests which weren't doing it properly.

Other information

This was a precondition for even investigating the root issue that @mkendall07 ran into in #1427. I had to fiddle with tje webpack build... but sinon 1.x doesn't export itself properly.

According to this guy, they fixed the issue in sinon 2.x.

I updated all the way to 3.x because "why not?" It didn't require any extra code changes on our end.

Sadly it looks like fixing the issue from #1427 will take lots of other changes too (logged as #1508)... but since I already had to do this work to upgrade, I figured I may as well commit it.

@jaiminpanchal27 jaiminpanchal27 merged commit dc4736a into master Sep 5, 2017
@matthewlane matthewlane deleted the upgrade-sinon branch September 5, 2017 20:34
jaiminpanchal27 added a commit that referenced this pull request Sep 5, 2017
jaiminpanchal27 added a commit that referenced this pull request Sep 5, 2017
philipwatson pushed a commit to mbrtargeting/Prebid.js that referenced this pull request Sep 18, 2017
* Removed deprecated calls.

* Replaced some .value() calls with .returns() ones

* Fixed all the remaining tests... except for one which was broken.

* Updated the yarn lockfile.

* Updated to sinon 3.x

* Removed the imports-loader, which I didnt actually need.

* Commented out another broken test.

* Fixed a bunch of errors which were pulled in during the merge.

* Better comments on why certain tests were removed.
philipwatson pushed a commit to mbrtargeting/Prebid.js that referenced this pull request Sep 18, 2017
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request Sep 18, 2017
* tag '0.28.0' of https://github.com/prebid/Prebid.js: (27 commits)
  Prebid 0.28.0 Release
  Revert "Upgrade sinon to 3.x (prebid#1491)" (prebid#1563)
  add () for correct order of operations in scaling increments for currency (prebid#1559)
  AppnexusAst adapter update: Added source and version to request payload (prebid#1555)
  remove unnecessary spread operator (prebid#1561)
  Adxcg adapter (prebid#1554)
  Upgrade sinon to 3.x (prebid#1491)
  Rename vastPayload to vastXml (prebid#1556)
  Single-size sizes array now can be taken, too (prebid#1535)
  Updated the istanbul-instrumenter-loader (prebid#1550)
  Add AerServ Adapter (prebid#1538)
  Fixed imports and made adform support aliasing (prebid#1518)
  Custom granularity fix (prebid#1546)
  Fix `documentation lint` issues (prebid#1544)
  Yieldbot adunit bidder params slot name usage fix (prebid#1394)
  Update serverbid adapter to use smartsync (prebid#1324)
  Add improvedigitalBidAdapter (prebid#1381)
  Fix prebid#1533 spring server typo (prebid#1542)
  userSync is off by default (prebid#1543)
  currency module (prebid#1374)
  ...
jbAdyoulike pushed a commit to jbAdyoulike/Prebid.js that referenced this pull request Sep 21, 2017
* Removed deprecated calls.

* Replaced some .value() calls with .returns() ones

* Fixed all the remaining tests... except for one which was broken.

* Updated the yarn lockfile.

* Updated to sinon 3.x

* Removed the imports-loader, which I didnt actually need.

* Commented out another broken test.

* Fixed a bunch of errors which were pulled in during the merge.

* Better comments on why certain tests were removed.
jbAdyoulike pushed a commit to jbAdyoulike/Prebid.js that referenced this pull request Sep 21, 2017
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Oct 12, 2017
….28.0 to aolgithub-master

* commit '4d9ade3df767750743f8888ed9efd6c77f8d0050': (26 commits)
  Added changelog entry.
  Added new aol partners ids.
  Prebid 0.28.0 Release
  Revert "Upgrade sinon to 3.x (prebid#1491)" (prebid#1563)
  add () for correct order of operations in scaling increments for currency (prebid#1559)
  AppnexusAst adapter update: Added source and version to request payload (prebid#1555)
  remove unnecessary spread operator (prebid#1561)
  Adxcg adapter (prebid#1554)
  Upgrade sinon to 3.x (prebid#1491)
  Rename vastPayload to vastXml (prebid#1556)
  Single-size sizes array now can be taken, too (prebid#1535)
  Updated the istanbul-instrumenter-loader (prebid#1550)
  Add AerServ Adapter (prebid#1538)
  Fixed imports and made adform support aliasing (prebid#1518)
  Custom granularity fix (prebid#1546)
  Fix `documentation lint` issues (prebid#1544)
  Yieldbot adunit bidder params slot name usage fix (prebid#1394)
  Update serverbid adapter to use smartsync (prebid#1324)
  Add improvedigitalBidAdapter (prebid#1381)
  Fix prebid#1533 spring server typo (prebid#1542)
  ...
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Removed deprecated calls.

* Replaced some .value() calls with .returns() ones

* Fixed all the remaining tests... except for one which was broken.

* Updated the yarn lockfile.

* Updated to sinon 3.x

* Removed the imports-loader, which I didnt actually need.

* Commented out another broken test.

* Fixed a bunch of errors which were pulled in during the merge.

* Better comments on why certain tests were removed.
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants