Skip to content

Instantly share code, notes, and snippets.

@nickboyce
Created February 11, 2014 13:43
Show Gist options
  • Save nickboyce/8935044 to your computer and use it in GitHub Desktop.
Save nickboyce/8935044 to your computer and use it in GitHub Desktop.
describe "hasMailChimpParams", ->
it "should return true if MailChimp parameters are in the URL", ->
hasMailChimpParams = EA.MailchimpData.checkForMailChimpParams("http://www.easyart.com?mc_cid=true&mc_eid=true");
expect(hasMailChimpParams).toBeTruthy();
it "should not return true if MailChimp parameters are not in the URL", ->
hasMailChimpParams = EA.MailchimpData.checkForMailChimpParams("http://www.easyart.com");
expect(hasMailChimpParams).not.toBeTruthy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment