aboutsummaryrefslogtreecommitdiff
path: root/webAO/utils/__tests__/paths.test.ts
diff options
context:
space:
mode:
authorstonedDiscord <stonedDiscord@users.noreply.github.com>2024-11-20 13:31:50 +0000
committerGitHub Action <actions@github.com>2024-11-20 13:31:50 +0000
commit6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch)
treeb2a62247d17e23a77af57aea355ba621666817c2 /webAO/utils/__tests__/paths.test.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
Diffstat (limited to 'webAO/utils/__tests__/paths.test.ts')
-rw-r--r--webAO/utils/__tests__/paths.test.ts22
1 files changed, 10 insertions, 12 deletions
diff --git a/webAO/utils/__tests__/paths.test.ts b/webAO/utils/__tests__/paths.test.ts
index 4f41d09..fe7b1bf 100644
--- a/webAO/utils/__tests__/paths.test.ts
+++ b/webAO/utils/__tests__/paths.test.ts
@@ -1,13 +1,11 @@
-import {getFilenameFromPath} from '../paths'
-jest.mock('../fileExists')
+import { getFilenameFromPath } from "../paths";
+jest.mock("../fileExists");
-describe('getFilenameFromPath', () => {
- const EXAMPLE_PATH = "localhost/stoneddiscord/assets.png"
- it('Should get the last value from a path', async () => {
- const actual = getFilenameFromPath(EXAMPLE_PATH);
- const expected = 'assets.png';
- expect(actual).toBe(expected);
- });
-})
-
-
+describe("getFilenameFromPath", () => {
+ const EXAMPLE_PATH = "localhost/stoneddiscord/assets.png";
+ it("Should get the last value from a path", async () => {
+ const actual = getFilenameFromPath(EXAMPLE_PATH);
+ const expected = "assets.png";
+ expect(actual).toBe(expected);
+ });
+});