mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
style: format the phase 2 files and add them to the format scope
Prettier on the 13 new test files that failed --check; format-scope.json now lists every file phase 2 added (src/globe/**, engineChoice, navaraMode, cameraAngles, the QA scripts and pages, build/navaraAssets and tests).
This commit is contained in:
1 parent
312ed416e9
commit
80cc0b536e
14 files changed
+229
-46
No files matched your search
@@ -12,7 +12,9 @@ function fakeAttribution() {
|
||||
},
|
||||
add(items) {
|
||||
for (const item of items)
|
||||
if (!shown.some((entry) => entry.attributionHtml === item.attributionHtml))
|
||||
if (
|
||||
!shown.some((entry) => entry.attributionHtml === item.attributionHtml)
|
||||
)
|
||||
shown.push(item);
|
||||
},
|
||||
remove(items) {
|
||||
@@ -31,7 +33,9 @@ test('addStatic shows HTML in the attribution and the remover is idempotent', ()
|
||||
const attribution = fakeAttribution();
|
||||
const { credits } = createNavaraCredits({ attribution });
|
||||
const remove = credits.addStatic('<a href="x">X</a>', { onScreen: true });
|
||||
assert.deepEqual(attribution.shown, [{ attributionHtml: '<a href="x">X</a>' }]);
|
||||
assert.deepEqual(attribution.shown, [
|
||||
{ attributionHtml: '<a href="x">X</a>' },
|
||||
]);
|
||||
remove();
|
||||
remove();
|
||||
assert.deepEqual(attribution.shown, []);
|
||||
|
||||
Reference in new issue
Block a user