From 7f7c927da43781e9425ce91a8014312c3412b74a Mon Sep 17 00:00:00 2001 From: Henrik Date: Thu, 23 Jul 2020 17:05:14 -0700 Subject: [PATCH] fix --- .../0.1/test/test-amp-subscriptions-google.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js b/extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js index 26f8481333d50..5183339701daf 100644 --- a/extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js +++ b/extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js @@ -100,21 +100,6 @@ describes.realWin('AmpFetcher', {amp: true}, (env) => { fetcher.sendBeacon(sentUrl, sentMessage); }); - - it('should send a post', async () => { - env.sandbox.stub(xhr, 'fetch').callsFake((url, init) => { - expect(url).to.equal(sentUrl); - expect(init).to.deep.equal({ - method: 'POST', - headers: {'Content-Type': contentType}, - credentials: 'include', - body: expectedBodyString, - }); - return Promise.resolve({}); - }); - - fetcher.sendPost(sentUrl, sentMessage); - }); }); describes.realWin('amp-subscriptions-google', {amp: true}, (env) => {