Skip to content

Commit

Permalink
chore(dev-deps): bump prettier to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
vscav committed Oct 13, 2023
1 parent 0456815 commit 0590d58
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion ember-lottie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"eslint-plugin-ember": "^11.11.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^2.5.1",
"prettier": "^3.0.3",
"rollup": "3.23.0",
"rollup-plugin-copy": "3.4.0",
"typescript": "5.2.2"
Expand Down
4 changes: 2 additions & 2 deletions ember-lottie/src/components/lottie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class LottieComponent extends Component<LottieSignature> {

this.mediaQuery?.addEventListener(
'change',
this.handleReducedMotionPreferenceChange
this.handleReducedMotionPreferenceChange,
);
}

Expand All @@ -124,7 +124,7 @@ export default class LottieComponent extends Component<LottieSignature> {

this.mediaQuery?.removeEventListener(
'change',
this.handleReducedMotionPreferenceChange
this.handleReducedMotionPreferenceChange,
);

if (this.animation) {
Expand Down
2 changes: 1 addition & 1 deletion ember-lottie/src/unpublished-development-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'ember-source/types';
import 'ember-source/types/preview';

declare class RenderModifier<
Args extends Array<unknown> = Array<unknown>
Args extends Array<unknown> = Array<unknown>,
> extends Modifier<{
Element: HTMLElement;
Args: { Positional: [(element: HTMLElement, args: Args) => void, ...Args] };
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@release-it-plugins/lerna-changelog": "^5.0.0",
"@release-it-plugins/workspaces": "^3.2.0",
"concurrently": "^7.2.1",
"prettier": "^2.5.1",
"prettier": "^3.0.3",
"release-it": "^15.11.0"
},
"engines": {
Expand Down
26 changes: 16 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-qunit": "^8.0.1",
"loader.js": "^4.7.0",
"prettier": "^2.8.4",
"prettier": "^3.0.3",
"qunit": "^2.19.4",
"qunit-dom": "^2.0.0",
"release-it": "^15.11.0",
Expand Down
12 changes: 6 additions & 6 deletions test-app/tests/integration/components/lottie-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module('Integration | Component | lottie', function (hooks) {
assert.true(removeEventListener.calledOnce);
});

test('it should not autoplay the animation when prefers-reduced-motion is enabled', async function (this: TestContext, assert: any) {
test('it should not autoplay the animation when prefers-reduced-motion is enabled', async function (this: TestContext, assert) {
window.matchMedia = () => {
return {
addEventListener: () => {
Expand All @@ -115,7 +115,7 @@ module('Integration | Component | lottie', function (hooks) {
assert.dom('[data-test-autoplay=false]').exists();
});

test('it should not autoplay the animation when autoplay is false', async function (this: TestContext, assert: any) {
test('it should not autoplay the animation when autoplay is false', async function (this: TestContext, assert) {
window.matchMedia = () => {
return {
addEventListener: () => {
Expand All @@ -139,7 +139,7 @@ module('Integration | Component | lottie', function (hooks) {
assert.dom('[data-test-autoplay=false]').exists();
});

test('it should autoplay the animation when prefers-reduced-motion is disabled', async function (this: TestContext, assert: any) {
test('it should autoplay the animation when prefers-reduced-motion is disabled', async function (this: TestContext, assert) {
window.matchMedia = () => {
return {
addEventListener: () => {
Expand All @@ -163,7 +163,7 @@ module('Integration | Component | lottie', function (hooks) {
assert.dom('[data-test-autoplay=true]').exists();
});

test('it should autoplay the animation by default when prefers-reduced-motion is disabled', async function (this: TestContext, assert: any) {
test('it should autoplay the animation by default when prefers-reduced-motion is disabled', async function (this: TestContext, assert) {
window.matchMedia = () => {
return {
addEventListener: () => {
Expand All @@ -186,7 +186,7 @@ module('Integration | Component | lottie', function (hooks) {
assert.dom('[data-test-autoplay=true]').exists();
});

test('it should not call document.querySelector when containerId is undefined or null', async function (this: TestContext, assert: any) {
test('it should not call document.querySelector when containerId is undefined or null', async function (this: TestContext, assert) {
const querySelector = sinon.spy();
document.querySelector = querySelector;
await render(hbs`
Expand All @@ -207,7 +207,7 @@ module('Integration | Component | lottie', function (hooks) {
assert.false(querySelector.calledOnce);
});

test('it should call document.querySelector when containerId is not falsy', async function (this: TestContext, assert: any) {
test('it should call document.querySelector when containerId is not falsy', async function (this: TestContext, assert) {
const querySelector = sinon.spy();
document.querySelector = querySelector;
await render(hbs`
Expand Down

0 comments on commit 0590d58

Please sign in to comment.