Skip to content

Commit 0de60c2

Browse files
committed
style: apply hook formatting updates
Include pre-commit formatting adjustments on the ESM graphing and unified strategy test changes. Made-with: Cursor
1 parent 12bfe59 commit 0de60c2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

apps/element-demo/test/e2e/unified-player-strategy.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { expect, test, type Page } from '@playwright/test';
33
const ELEMENT = process.env.UNIFIED_PLAYER_E2E_ELEMENT?.trim() || 'multiple-choice';
44
const DEMO_ID =
55
process.env.UNIFIED_PLAYER_E2E_DEMO?.trim() ||
6-
(ELEMENT === 'multiple-choice' ? 'math-algebra-quadratic' : ELEMENT === 'graphing' ? 'parabola-vertex' : '');
6+
(ELEMENT === 'multiple-choice'
7+
? 'math-algebra-quadratic'
8+
: ELEMENT === 'graphing'
9+
? 'parabola-vertex'
10+
: '');
711
const DEMO_QUERY = DEMO_ID ? `&demo=${DEMO_ID}` : '';
812
const STRATEGIES = (process.env.UNIFIED_PLAYER_E2E_STRATEGIES?.trim() || 'esm,iife')
913
.split(',')

packages/element-player/src/players/PieElementPlayer.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ function attachInstanceHandlers(viewMode: ElementPlayerView) {
194194
const detail = customEvent.detail as any;
195195
// Many elements emit partial updates in model.updated detail;
196196
// emit a full model snapshot to keep host state consistent.
197-
const nextModel = (elementInstance as any)?.model ?? detail?.model ?? detail?.update ?? detail;
197+
const nextModel =
198+
(elementInstance as any)?.model ?? detail?.model ?? detail?.update ?? detail;
198199
dispatch('model-changed', nextModel);
199200
};
200201
elementInstance.addEventListener('model.updated', modelHandler);

0 commit comments

Comments
 (0)