Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Port tests to ES6. Use nock and sinon for better mocking / stubbing #80

Merged
merged 10 commits into from
Apr 11, 2017

Conversation

bryanmikaelian
Copy link
Contributor

@bryanmikaelian bryanmikaelian commented Apr 11, 2017

This PR is providing some updates to our test suite. Big changes:

  • ES6 syntax where appropriate since we support Node 4
  • Ditch in-house api_mock in favor of mocks with nock. This allows us to simulate failures on a per test level and really customize how the Librato would respond
  • Add sinon as a dep for stubs and spies and mocks
  • Remove EOL node versions from the build matrix. Only test against stable and the LTS versions

Hopefully, over time, we can make our test suite stronger and prevent small bugs from slipping through the cracks (such as #79)

@bryanmikaelian bryanmikaelian merged commit 46b9673 into master Apr 11, 2017
@bryanmikaelian bryanmikaelian deleted the feature/tests-es6 branch April 11, 2017 20:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant