From 1c6875f0e7556cf7786bb722d7927f523733b2d8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:28:47 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=A6=20Update=20dependency=20pretti?= =?UTF-8?q?er=20to=20v3.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 78b94044ef7d1..31ea4120a084c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -161,7 +161,7 @@ "postcss": "8.3.11", "postcss-import": "14.0.2", "posthtml": "0.16.5", - "prettier": "3.0.1", + "prettier": "3.0.2", "react": "17.0.2", "react-dom": "17.0.2", "rocambole": "0.7.0", @@ -21037,9 +21037,9 @@ } }, "node_modules/prettier": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.1.tgz", - "integrity": "sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.2.tgz", + "integrity": "sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -39442,9 +39442,9 @@ "dev": true }, "prettier": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.1.tgz", - "integrity": "sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.2.tgz", + "integrity": "sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==", "dev": true }, "prettier-linter-helpers": { diff --git a/package.json b/package.json index 69f232adcb81d..c76e7a8b33114 100644 --- a/package.json +++ b/package.json @@ -166,7 +166,7 @@ "postcss": "8.3.11", "postcss-import": "14.0.2", "posthtml": "0.16.5", - "prettier": "3.0.1", + "prettier": "3.0.2", "react": "17.0.2", "react-dom": "17.0.2", "rocambole": "0.7.0", From ad714fe706ee7b5728f7f33762bc115c177d5b0a Mon Sep 17 00:00:00 2001 From: Daniel Rozenberg Date: Tue, 15 Aug 2023 12:41:33 -0400 Subject: [PATCH 2/2] `amp lint --fix` --- .../test-amp-ad-xorigin-iframe-handler.js | 5 ++--- .../0.1/test-e2e/test-load-more-auto.js | 5 ++--- .../0.1/test-e2e/test-load-more-manual.js | 5 ++--- .../0.1/test/test-viewer-platform.js | 20 ++++++++----------- test/e2e/test-amp-bind-live-list.js | 10 ++++------ test/e2e/test-amp-bind-state.js | 5 ++--- 6 files changed, 20 insertions(+), 30 deletions(-) diff --git a/extensions/amp-ad/0.1/test/test-amp-ad-xorigin-iframe-handler.js b/extensions/amp-ad/0.1/test/test-amp-ad-xorigin-iframe-handler.js index 5e19642734666..73566dbe5d11c 100644 --- a/extensions/amp-ad/0.1/test/test-amp-ad-xorigin-iframe-handler.js +++ b/extensions/amp-ad/0.1/test/test-amp-ad-xorigin-iframe-handler.js @@ -407,9 +407,8 @@ describes.sandboxed('amp-ad-xorigin-iframe-handler', {}, (env) => { sentinel: 'amp3ptest' + testIndex, }); - const data3 = await iframe.expectMessageFromParent( - 'embed-size-changed' - ); + const data3 = + await iframe.expectMessageFromParent('embed-size-changed'); expect(data3).to.jsonEqual({ requestedWidth: 114, diff --git a/extensions/amp-list/0.1/test-e2e/test-load-more-auto.js b/extensions/amp-list/0.1/test-e2e/test-load-more-auto.js index 8565364c7c692..6f3a4f99a4ffa 100644 --- a/extensions/amp-list/0.1/test-e2e/test-load-more-auto.js +++ b/extensions/amp-list/0.1/test-e2e/test-load-more-auto.js @@ -28,9 +28,8 @@ describes.endtoend( 'none' ); - const failedIndicator = await controller.findElement( - '[load-more-failed]' - ); + const failedIndicator = + await controller.findElement('[load-more-failed]'); await expect(failedIndicator).to.be.ok; await expect( controller.getElementCssValue(failedIndicator, 'display') diff --git a/extensions/amp-list/0.1/test-e2e/test-load-more-manual.js b/extensions/amp-list/0.1/test-e2e/test-load-more-manual.js index 6fac367c63d18..6d9e70fc78883 100644 --- a/extensions/amp-list/0.1/test-e2e/test-load-more-manual.js +++ b/extensions/amp-list/0.1/test-e2e/test-load-more-manual.js @@ -38,9 +38,8 @@ describes.endtoend( 'none' ); - const failedIndicator = await controller.findElement( - '[load-more-failed]' - ); + const failedIndicator = + await controller.findElement('[load-more-failed]'); await expect(failedIndicator).to.be.ok; await expect( controller.getElementCssValue(failedIndicator, 'display') diff --git a/extensions/amp-subscriptions/0.1/test/test-viewer-platform.js b/extensions/amp-subscriptions/0.1/test/test-viewer-platform.js index 16c6b44357298..d6d91e0225f06 100644 --- a/extensions/amp-subscriptions/0.1/test/test-viewer-platform.js +++ b/extensions/amp-subscriptions/0.1/test/test-viewer-platform.js @@ -216,9 +216,8 @@ describes.fakeWin('ViewerSubscriptionPlatform', {amp: true}, (env) => { 'entitlements': entitlementData, })); - const resolvedEntitlement = await viewerPlatform.verifyAuthToken_( - 'faketoken' - ); + const resolvedEntitlement = + await viewerPlatform.verifyAuthToken_('faketoken'); expect(resolvedEntitlement).to.be.not.undefined; expect(resolvedEntitlement.service).to.equal(entitlementData.service); expect(resolvedEntitlement.source).to.equal('viewer'); @@ -241,9 +240,8 @@ describes.fakeWin('ViewerSubscriptionPlatform', {amp: true}, (env) => { 'entitlements': [entitlementData], })); - const resolvedEntitlement = await viewerPlatform.verifyAuthToken_( - 'faketoken' - ); + const resolvedEntitlement = + await viewerPlatform.verifyAuthToken_('faketoken'); expect(resolvedEntitlement).to.be.not.undefined; expect(resolvedEntitlement.service).to.equal(entitlementData.service); expect(resolvedEntitlement.source).to.equal('viewer'); @@ -287,9 +285,8 @@ describes.fakeWin('ViewerSubscriptionPlatform', {amp: true}, (env) => { }, })); - const resolvedEntitlement = await viewerPlatform.verifyAuthToken_( - 'faketoken' - ); + const resolvedEntitlement = + await viewerPlatform.verifyAuthToken_('faketoken'); expect(resolvedEntitlement).to.be.not.undefined; expect(resolvedEntitlement.service).to.equal('local'); expect(resolvedEntitlement.granted).to.be.equal(true); @@ -317,9 +314,8 @@ describes.fakeWin('ViewerSubscriptionPlatform', {amp: true}, (env) => { }, })); - const resolvedEntitlement = await viewerPlatform.verifyAuthToken_( - 'faketoken' - ); + const resolvedEntitlement = + await viewerPlatform.verifyAuthToken_('faketoken'); expect(resolvedEntitlement).to.be.not.undefined; expect(resolvedEntitlement.service).to.equal('local'); expect(resolvedEntitlement.granted).to.be.equal(true); diff --git a/test/e2e/test-amp-bind-live-list.js b/test/e2e/test-amp-bind-live-list.js index f163803c240bf..d38d590ea5882 100644 --- a/test/e2e/test-amp-bind-live-list.js +++ b/test/e2e/test-amp-bind-live-list.js @@ -12,9 +12,8 @@ describes.endtoend( describe('with ', () => { it('should detect bindings in initial live-list elements', async () => { - const liveListChildren = await controller.findElements( - '#liveListItems > *' - ); + const liveListChildren = + await controller.findElements('#liveListItems > *'); await expect(liveListChildren.length).to.equal(1); const existingItem = await controller.findElement('#liveListItem1'); @@ -38,9 +37,8 @@ describes.endtoend( // TODO(cvializ,choumx): Configure the server to send different data on the // second request. A queryparam should be able to implement this. it.skip('should apply scope to bindings in new list items', async () => { - const liveListChildren = await controller.findElements( - '#liveListItems > *' - ); + const liveListChildren = + await controller.findElements('#liveListItems > *'); await expect(liveListChildren.length).to.equal(1); const existingItem = await controller.findElement('#liveListItem1'); diff --git a/test/e2e/test-amp-bind-state.js b/test/e2e/test-amp-bind-state.js index 68800444816d8..4049f36a061fd 100644 --- a/test/e2e/test-amp-bind-state.js +++ b/test/e2e/test-amp-bind-state.js @@ -23,9 +23,8 @@ describes.endtoend( // TODO(cvializ, choumx): Update server to have an endpoint that // would test the infinite-loop blocking behavior it.skip('should not loop infinitely if updates change its src binding', async () => { - const changeAmpStateSrcButton = await controller.findElement( - '#changeAmpStateSrc' - ); + const changeAmpStateSrcButton = + await controller.findElement('#changeAmpStateSrc'); const setState = await controller.findElement('#setState'); const ampState = await controller.findElement('#ampState');