segmentio/analytics.js-integrations — pull request #450 by amillet89 (2014-11-05 02:50:54+00:00)
Title: Amplitude: added setDomain and setGlobalUserProperties to init

fixes https://github.com/segmentio/analytics.js-integrations/pull/448

@DirtyAnalytics split the setDomain and setGlobalUserProperties into separate methods to be able to test them. For each of these we have two tests, one that checks that setDomain (setGlobalUserProperties) was called, and another that checks that the setDomain method calls the window.amplitude.setDomain with the right params

@yields : @calvinfo and I wondered if there's a better way to test these two methods if we kept them inside initialize?