Skip to content

Commit 5f4489c

Browse files
run format
1 parent 57b6245 commit 5f4489c

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

resources/todomvc/vanilla-examples/javascript-web-components/scripts/build.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ async function updateImportsInFile({ file, src, dest }) {
8282
async function updateImports({ files, src, dest }) {
8383
for (const file of files)
8484
await updateImportsInFile({ file, src, dest });
85-
8685
}
8786

8887
const filesToMove = [
@@ -109,7 +108,7 @@ const importsToRename = [
109108
{
110109
src: "node_modules/todomvc-css/dist/",
111110
dest: "styles/",
112-
files: ["./dist/index.html"]
111+
files: ["./dist/index.html"],
113112
},
114113
{
115114
src: "../../../node_modules/todomvc-css/dist/",
@@ -125,16 +124,13 @@ const importsToRename = [
125124
{
126125
src: "/src/",
127126
dest: "./",
128-
files: ["./dist/src/index.js"]
127+
files: ["./dist/src/index.js"],
129128
},
130129
{
131130
src: "/node_modules/speedometer-utils/",
132131
dest: "./",
133-
files: [
134-
"./dist/src/index.js",
135-
"./dist/src/workload-test.mjs"
136-
]
137-
}
132+
files: ["./dist/src/index.js", "./dist/src/workload-test.mjs"],
133+
},
138134
];
139135

140136
const build = async () => {
@@ -148,7 +144,7 @@ const build = async () => {
148144
await copyFiles(filesToMove);
149145

150146
// rename imports files
151-
for (const entry of importsToRename){
147+
for (const entry of importsToRename) {
152148
const { files, src, dest } = entry;
153149
await updateImports({ files, src, dest });
154150
}

resources/todomvc/vanilla-examples/javascript-web-components/src/workload-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const suites = {
1212
for (let i = 0; i < numberOfItemsToAdd; i++) {
1313
input.value = getTodoText(defaultLanguage, i);
1414
input.dispatchEvent(new Event("input"));
15-
input.dispatchEvent(new KeyboardEvent("keyup", { keyCode: 13, key: "Enter"}));
15+
input.dispatchEvent(new KeyboardEvent("keyup", { keyCode: 13, key: "Enter" }));
1616
}
1717
}),
1818
new BenchmarkStep("Completing-items", () => {

0 commit comments

Comments
 (0)