Skip to content

Upgrade sinon to 3.x#1491

Merged
jaiminpanchal27 merged 14 commits intomasterfrom
upgrade-sinon
Sep 5, 2017
Merged

Upgrade sinon to 3.x#1491
jaiminpanchal27 merged 14 commits intomasterfrom
upgrade-sinon

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.

@mkendall07 mkendall07 added this to the Prebid 0.28.0 milestone Aug 22, 2017
@mkendall07 mkendall07 requested a review from snapwich August 24, 2017 13:00
@jaiminpanchal27 jaiminpanchal27 self-requested a review September 5, 2017 19:04
@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)
  ...
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)
  ...
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

Comments