Skip to content

Commit

Permalink
improve ati-smarttag redirect #200 AG-13141
Browse files Browse the repository at this point in the history
Merge in ADGUARD-FILTERS/scriptlets from fix/AG-13141 to release/v1.6

Squashed commit of the following:

commit 0bd719a
Author: Stanislav A <[email protected]>
Date:   Mon Mar 14 19:08:39 2022 +0300

    improve ati-smarttag redirect
  • Loading branch information
stanislav-atr committed Mar 15, 2022
1 parent d3b284d commit 69a8825
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/redirects/ati-smarttag.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export function ATInternetSmartTag(source) {

click: sendNoopFuncWrapper,
clickListener: sendNoopFuncWrapper,
internalSearch: sendNoopFuncWrapper,
internalSearch: {
set: noopFunc,
send: noopFunc,
},

ecommerce: ecommerceWrapper,

Expand Down
2 changes: 2 additions & 0 deletions tests/redirects/ati-smarttag.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ test('ati-smarttag: works', (assert) => {
assert.strictEqual(tag.clickListener.send(), undefined, 'tag.clickListener.send() is mocked');

assert.ok(tag.internalSearch instanceof Object, 'tag.internalSearch is object');
assert.ok(tag.internalSearch.set instanceof Function, 'tag.internalSearch.set is function');
assert.strictEqual(tag.internalSearch.set(), undefined, 'tag.internalSearch.set() is mocked');
assert.ok(tag.internalSearch.send instanceof Function, 'tag.internalSearch.send is function');
assert.strictEqual(tag.internalSearch.send(), undefined, 'tag.internalSearch.send() is mocked');

Expand Down

0 comments on commit 69a8825

Please sign in to comment.