Skip to content

Commit aa4dd9a

Browse files
author
Vanshika
committed
chore: fix prettier formatting for tuner.test.js and ProgramBlocks.js
1 parent 8fca041 commit aa4dd9a

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

js/blocks/ProgramBlocks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,10 +1398,10 @@ function setupProgramBlocks(activity) {
13981398
function ValidURL(str) {
13991399
const pattern = new RegExp(
14001400
"^(https?:\\/\\/)?" + // protocol
1401-
"((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|" + // domain name
1402-
"((\\d{1,3}\\.) {3}\\d{1,3}))" + // OR ip (v4) address
1403-
"(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path
1404-
"(\\?[;&a-z\\d%_.~+=-]*)?" + // query string
1401+
"((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|" + // domain name
1402+
"((\\d{1,3}\\.) {3}\\d{1,3}))" + // OR ip (v4) address
1403+
"(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path
1404+
"(\\?[;&a-z\\d%_.~+=-]*)?" + // query string
14051405
"(\\#[-a-z\\d_]*)?$",
14061406
"i"
14071407
); // fragment locator

js/widgets/tuner.test.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,8 @@ describe("Tuner Widget", () => {
132132
test("identifies all 12 chromatic notes in octave 4", () => {
133133
const noteNames = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"];
134134
const octave4Freqs = [
135-
261.63,
136-
277.18,
137-
293.66,
138-
311.13,
139-
329.63,
140-
349.23,
141-
369.99,
142-
392.0,
143-
415.3,
144-
440.0,
145-
466.16,
146-
493.88
135+
261.63, 277.18, 293.66, 311.13, 329.63, 349.23, 369.99, 392.0, 415.3, 440.0,
136+
466.16, 493.88
147137
];
148138

149139
for (let i = 0; i < noteNames.length; i++) {

0 commit comments

Comments
 (0)