Skip to content

Commit d9a2eb4

Browse files
committed
prettier frontend
1 parent 90904fd commit d9a2eb4

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

frontend/jest.config.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
module.exports = {
22
testEnvironment: "jsdom",
3-
setupFilesAfterEnv: [
4-
"<rootDir>/test/setup.ts"
5-
],
3+
setupFilesAfterEnv: ["<rootDir>/test/setup.ts"],
64
transform: {
7-
"^.+\\.tsx?$": "ts-jest"
5+
"^.+\\.tsx?$": "ts-jest",
86
},
97
testRegex: "/test/.*\\.spec\\.tsx?$",
108
moduleNameMapper: {
119
// mock api module. the "$" ensures the react tests won't fail, as enzyme
1210
// apparently relies on an "*api*" module, which would be resolved to
1311
// the mocked api client module
14-
"api$": "<rootDir>/test/__mocks__/api.ts",
12+
api$: "<rootDir>/test/__mocks__/api.ts",
1513
},
16-
moduleFileExtensions: [
17-
"ts",
18-
"tsx",
19-
"js",
20-
"jsx"
21-
]
22-
}
14+
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
15+
};

frontend/src/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export const sleep = (ms: number) =>
1717
* @param date The date to format
1818
*/
1919
export const dateToString = (date: Date) => {
20-
return date.toLocaleString('default', {
20+
return date.toLocaleString("default", {
2121
year: "numeric",
2222
month: "long",
2323
day: "numeric",
2424
});
25-
}
25+
};
2626

2727
/**
2828
* Extracts all public fields from a type to a new type. This is mainly used to

0 commit comments

Comments
 (0)