Skip to content

Commit

Permalink
BAM-3538 added field to payload (#25160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asadius authored and zhouyx committed Oct 22, 2019
1 parent 68ad089 commit ba95744
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/amp-smartlinks/0.1/linkmate.js
Expand Up @@ -148,6 +148,7 @@ export class Linkmate {
const linkObj = {
'raw_url': link,
'exclusive_match_requested': exclusive,
'link_source': 'linkmate',
};

postLinks.push(linkObj);
Expand Down
11 changes: 11 additions & 0 deletions extensions/amp-smartlinks/0.1/test/test-linkmate.js
Expand Up @@ -260,14 +260,17 @@ describes.fakeWin(
{
'raw_url': 'http://fakelink.example/',
'exclusive_match_requested': false,
'link_source': 'linkmate',
},
{
'raw_url': 'http://fakelink2.example/',
'exclusive_match_requested': false,
'link_source': 'linkmate',
},
{
'raw_url': 'https://examplelocklink.example/#locklink',
'exclusive_match_requested': true,
'link_source': 'linkmate',
},
];

Expand All @@ -284,14 +287,17 @@ describes.fakeWin(
{
'raw_url': 'http://fakelink.example/',
'exclusive_match_requested': true,
'link_source': 'linkmate',
},
{
'raw_url': 'http://fakelink2.example/',
'exclusive_match_requested': true,
'link_source': 'linkmate',
},
{
'raw_url': 'https://examplelocklink.example/#locklink',
'exclusive_match_requested': true,
'link_source': 'linkmate',
},
];

Expand All @@ -316,10 +322,12 @@ describes.fakeWin(
{
'raw_url': 'http://fakelink.example/',
'exclusive_match_requested': false,
'link_source': 'linkmate',
},
{
'raw_url': 'https://examplelocklink.example/#locklink',
'exclusive_match_requested': true,
'link_source': 'linkmate',
},
];

Expand Down Expand Up @@ -373,14 +381,17 @@ describes.fakeWin(
{
'raw_url': 'http://fakelink.example/',
'exclusive_match_requested': false,
'link_source': 'linkmate',
},
{
'raw_url': 'http://fakelink2.example/',
'exclusive_match_requested': false,
'link_source': 'linkmate',
},
{
'raw_url': 'https://examplelocklink.example/#locklink',
'exclusive_match_requested': true,
'link_source': 'linkmate',
},
];

Expand Down

0 comments on commit ba95744

Please sign in to comment.