Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/javascript')
-rw-r--r--tests/javascript/index.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index d8362dbb58..b3ffc0bf0a 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -2378,14 +2378,8 @@ function PiwikTest() {
equal(firstTracker.getTrackerUrl(), asyncTracker.getTrackerUrl(), 'getAsyncTracker() async same getTrackerUrl()');
equal(firstTracker, asyncTracker, 'getAsyncTracker() async same tracker instance');
-
- try {
- // should throw exception when no idSite given
- asyncTracker.addTracker(tracker.url);
- ok(false, 'addTracker() without siteId expected exception has not been triggered');
- } catch (e) {
- ok(true, 'addTracker() siteId expected exception has been triggered');
- }
+ var trackerWithoutIdSite = asyncTracker.addTracker(tracker.url);
+ ok(!!trackerWithoutIdSite, 'addTracker() without siteId can be called');
// getting a specific tracker instance