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

feat(campaigns): Added support for Campaigns #275

Merged
merged 2 commits into from
Aug 23, 2022

Conversation

erin-doyle
Copy link
Contributor

Added the ability to list, create, retrieve and delete for Campaigns.

@@ -3,7 +3,7 @@
const ClientVersion = require('../package.json').version;
const Resources = require('./resources');

const LOB_HOST = 'https://api.lob.com/v1/';
const LOB_HOST = process.env.LOB_HOST || 'https://api.lob.com/v1/';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I add this so I could test in staging by passing LOB_HOST in when running npm test

@erin-doyle
Copy link
Contributor Author

I'm not sure why these tests are timing out. I was able to run them locally with all tests passing and 100% coverage of the new code. I wonder if the API key stored in GitHub needs to be updated?

@BennyKitchell
Copy link
Contributor

BennyKitchell commented Aug 23, 2022

I'm not sure why these tests are timing out. I was able to run them locally with all tests passing and 100% coverage of the new code. I wonder if the API key stored in GitHub needs to be updated?

That's a strong possibility, just updated the key and will re-run. If it fails, will test locally and approve.

edit: There's also a sickeningly low threshold for timeout with our API. Tests pass locally 👍

@BennyKitchell BennyKitchell changed the title feat(campaigns): Added support for Campaigns feat(campaigns): Added support for Campaigns Aug 23, 2022
@erin-doyle erin-doyle merged commit b11db20 into main Aug 23, 2022
@erin-doyle erin-doyle deleted the DANG-1505_retrieve_campaign branch August 23, 2022 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants