diff --git a/tests/unit/loader.js b/tests/unit/loader.js index 386d4149..103a92bf 100644 --- a/tests/unit/loader.js +++ b/tests/unit/loader.js @@ -19,6 +19,24 @@ describe(`Module-based loader in Node env`, function() { }); }); + it(`supports init() with options twice`, async function(done) { + try { + await new Promise((resolve, reject) => { + mixpanel.init(`test-token`, { + debug: true, + persistence: `localStorage`, + api_host: `https://test.com`, + loaded: resolve, + error_reporter: reject + }); + }); + } catch (e) { + console.log(e); + } + + done(); + }); + it(`supports identify()`, function() { mixpanel.identify(`Pat`); });