| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/piwik/plugins/CoreHome/javascripts/ |
Upload File : |
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
(function () {
describe('broadcast', function () {
var tests = [
{ url: 'http://matomo.org/index.php?param=val', param: 'param', expectedValue: 'val' },
{ url: 'http://matomo.org/index.php?param=val', param: 'custom', expectedValue: '' },
{ url: 'http://matomo.org/index.php?myparam=test¶m=val', param: 'param', expectedValue: 'val' },
{ url: 'http://matomo.org/index.php?param=val&myparam=test', param: 'param', expectedValue: 'val' },
{ url: 'http://matomo.org/index.php?param=val¶m=val2', param: 'param', expectedValue: 'val2' },
{ url: 'http://matomo.org/index.php?param[]=val&myparam[]=x¶m[]=val2', param: 'param', expectedValue: ['val', 'val2'] },
];
tests.forEach(function(test,index) {
it('should return correct parameters with getParamValue ' + (index+1), function () {
expect(broadcast.getParamValue(test.param, test.url)).to.deep.equal(test.expectedValue);
});
});
});
})();