Skip to content

Commit d1b2196

Browse files
committed
style: format files with prettier
1 parent fbb7736 commit d1b2196

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

js/__tests__/logo.test.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ describe("Logo Class", () => {
196196
turtleList: [],
197197
getTurtleCount: jest.fn(() => 1),
198198
turtleCount: jest.fn(() => 1),
199-
ithTurtle: jest.fn((i) => ({
199+
ithTurtle: jest.fn(i => ({
200200
singer: {
201201
synthVolume: {},
202202
backward: [],
@@ -210,7 +210,7 @@ describe("Logo Class", () => {
210210
parameterQueue: [],
211211
initTurtle: jest.fn()
212212
})),
213-
getTurtle: jest.fn((i) => ({
213+
getTurtle: jest.fn(i => ({
214214
painter: { color: 50 },
215215
container: { x: 0, y: 0 },
216216
x: 0,
@@ -583,12 +583,14 @@ describe("Logo parseArg", () => {
583583
});
584584

585585
test("handles value blocks", () => {
586-
logo.blockList = [{
587-
name: "number",
588-
value: 42,
589-
protoblock: { parameter: false },
590-
isValueBlock: () => true
591-
}];
586+
logo.blockList = [
587+
{
588+
name: "number",
589+
value: 42,
590+
protoblock: { parameter: false },
591+
isValueBlock: () => true
592+
}
593+
];
592594

593595
const result = logo.parseArg(logo, 0, 0, null, null);
594596

@@ -600,12 +602,14 @@ describe("Logo parseArg", () => {
600602
parameterQueue: [],
601603
singer: { noteDirection: 0 }
602604
}));
603-
logo.blockList = [{
604-
name: "intervalname",
605-
value: "fifth",
606-
protoblock: { parameter: false },
607-
isValueBlock: () => false
608-
}];
605+
logo.blockList = [
606+
{
607+
name: "intervalname",
608+
value: "fifth",
609+
protoblock: { parameter: false },
610+
isValueBlock: () => false
611+
}
612+
];
609613

610614
const result = logo.parseArg(logo, 0, 0, null, null);
611615

js/__tests__/palette.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,7 @@ describe("Palettes Class", () => {
489489
const mockUpdatePalettes = jest.spyOn(palettes, "updatePalettes");
490490
palettes.dict = {
491491
action: {
492-
protoList: [
493-
{ name: "someOtherBlock", defaults: ["otherAction"] }
494-
]
492+
protoList: [{ name: "someOtherBlock", defaults: ["otherAction"] }]
495493
}
496494
};
497495

0 commit comments

Comments
 (0)