Skip to content

Commit

Permalink
✨ SwG Release 0.1.22.203 (#37492)
Browse files Browse the repository at this point in the history
* SwG Release 0.1.22.203

* Updated unit test to ignore encodedParams

* empty
  • Loading branch information
xiexr151e authored Jan 27, 2022
1 parent dcc01ac commit 1176cf6
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,10 @@ describes.realWin('amp-subscriptions-google', {amp: true}, (env) => {
);

await platform.getEntitlements();
expect(fetchStub).to.be.calledWith(
'https://news.google.com/swg/_/api/v1/publication/example.org/entitlements'
expect(fetchStub.args[0][0]).to.match(
/https:\/\/news.google.com\/swg\/_\/api\/v1\/publication\/example\.org\/entitlements(.)*/
);
expect(fetchStub.args[0][0]).not.contain('crypt=');
});

it('should add encryptedDocumentKey parameter to url', async () => {
Expand All @@ -1189,8 +1190,8 @@ describes.realWin('amp-subscriptions-google', {amp: true}, (env) => {
getEncryptedDocumentKeyStub.callsFake(() => 'encryptedDocumentKey');

await platform.getEntitlements();
expect(fetchStub).to.be.calledWith(
'https://news.google.com/swg/_/api/v1/publication/example.org/entitlements?crypt=encryptedDocumentKey'
expect(fetchStub.args[0][0]).to.match(
/https:\/\/news\.google\.com\/swg\/_\/api\/v1\/publication\/example\.org\/entitlements(.)*\?crypt=encryptedDocumentKey/
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion third_party/subscriptions-project/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** Version: 0.1.22.201 */
/** Version: 0.1.22.203 */
/**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
Expand Down
Loading

0 comments on commit 1176cf6

Please sign in to comment.