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

Fix default value for campaign tokens #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adjohu
Copy link

@adjohu adjohu commented Dec 13, 2019

The Readme suggests that tokens can be omitted, but when they are, the request fails.

Marketo expects an array for tokens. If an empty object is passed, Marketo rejects the request.

The Readme suggests that `tokens` can be omitted, but when they are, the request fails.

Marketo expects an array for `tokens`. If an empty object is passed, Marketo rejects the request.
@raszi
Copy link
Owner

raszi commented Dec 31, 2019

According to the docs, you are right.

Thank you for opening the PR, could you please also provide tests for it?

@adjohu
Copy link
Author

adjohu commented Jan 16, 2020

It's a 2 character change and there were no tests before. Merging this will improve the codebase slightly 🤷‍♂

@raszi
Copy link
Owner

raszi commented Jul 7, 2020

You are right, it is a two characters long change. But this was an issue, so to make sure there are no regressions in the future it is a very good practice to write a test.

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