Skip to content

Unit tests & SDK updates#53

Merged
crhistianramirez merged 11 commits intoordercloud-api:developmentfrom
robertsoniv:unit-tests-bbc
May 3, 2017
Merged

Unit tests & SDK updates#53
crhistianramirez merged 11 commits intoordercloud-api:developmentfrom
robertsoniv:unit-tests-bbc

Conversation

@robertsoniv
Copy link
Copy Markdown
Contributor

@robertsoniv robertsoniv commented May 2, 2017

Updated the OrderCloud Angular SDK to version 1.0.49-staging-prerelease

  • Along with this update all instances (1) of OrderCloudSDK.Me.GetProduct() have been updated to no longer include the old catalogID parameter.

Error handling has been updated to account for the new OAuth error patterns

  • ex.response.body.error_description

Updates to our unit test framework have been made to include global variables. This will greatly simplify each individual *.spec.js file. See commit 15fc225

Unit tests for the following have been completed:

  • account.spec.js
  • addPromotion.spec.js
  • base.spec.js
  • app.spec.js
  • login.spec.js (submit only)
  • categoryBrowse.spec.js
  • cart.spec.js

- We no longer have to load orderCloud or the SDK in every unit
  test file. They are now loaded for all tests in the src/ dir's
  global.spec.js file.
- Started a global "mock" variable for reusing mock data across
  all unit tests. This should also clean up our test code a little.
- Ignore *.spec.js in .eslintignore so that we don't see a ton
  of undefined variable errors
- app.spec & base.spec have been updated to pass.
- version 1.0.49-staging-prerelease
- updated all Me.GetProduct() calls to exclude catalogid as the first
  parameter; we should only need productID now.
- error handling should now work with the new OAuth error patterns
@crhistianramirez crhistianramirez merged commit d99bb84 into ordercloud-api:development May 3, 2017
@robertsoniv robertsoniv deleted the unit-tests-bbc branch May 25, 2017 22:23
crhistianramirez pushed a commit to Four51/demo-angular-buyer that referenced this pull request Aug 3, 2017
We were getting error message: too many redirects. Trying a different…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants