|
1 | | -import { assertEquals } from 'jsr:@std/assert'; |
2 | | -import { describe, it } from 'jsr:@std/testing/bdd'; |
3 | | -import { getLocalPath } from './get-local-path.ts'; |
4 | | -import { shortenPath } from './shorten-path.ts'; |
| 1 | +import { assertEquals } from "jsr:@std/assert"; |
| 2 | +import { describe, it } from "jsr:@std/testing/bdd"; |
| 3 | +import { getLocalPath } from "./get-local-path.ts"; |
| 4 | +import { shortenPath } from "./shorten-path.ts"; |
5 | 5 |
|
6 | | -describe('getLocalPath', () => { |
| 6 | +describe("getLocalPath", () => { |
7 | 7 | const TEST_CASES = [ |
8 | 8 | { |
9 | | - targetBaseDir: '/home/user/Projects', |
10 | | - repo: 'https://git-host.com/project/project.git', |
11 | | - expected: '/home/user/Projects/git-host/project/project', |
| 9 | + targetBaseDir: "/home/user/Projects", |
| 10 | + repo: "https://git-host.com/project/project.git", |
| 11 | + expected: "/home/user/Projects/git-host/project/project", |
12 | 12 | }, |
13 | 13 | { |
14 | | - targetBaseDir: '/home/user/Projects', |
15 | | - repo: 'https://git-host.com/organisation/project.git', |
16 | | - expected: '/home/user/Projects/git-host/organisation/project', |
| 14 | + targetBaseDir: "/home/user/Projects", |
| 15 | + repo: "https://git-host.com/organisation/project.git", |
| 16 | + expected: "/home/user/Projects/git-host/organisation/project", |
17 | 17 | }, |
18 | 18 | { |
19 | | - targetBaseDir: '/home/user/Projects/git-host', |
20 | | - repo: 'https://git-host.com/organisation/project.git', |
21 | | - expected: '/home/user/Projects/git-host/organisation/project', |
| 19 | + targetBaseDir: "/home/user/Projects/git-host", |
| 20 | + repo: "https://git-host.com/organisation/project.git", |
| 21 | + expected: "/home/user/Projects/git-host/organisation/project", |
22 | 22 | }, |
23 | 23 | { |
24 | | - targetBaseDir: '/home/user/Projects', |
25 | | - repo: 'https://git-host.com/organisation/project.git', |
26 | | - expected: '/home/user/Projects/git-host/organisation/project', |
| 24 | + targetBaseDir: "/home/user/Projects", |
| 25 | + repo: "https://git-host.com/organisation/project.git", |
| 26 | + expected: "/home/user/Projects/git-host/organisation/project", |
27 | 27 | }, |
28 | 28 | { |
29 | | - targetBaseDir: '/home/user/Projects/git-host', |
30 | | - repo: 'https://git-host.com/organisation/project.git', |
31 | | - expected: '/home/user/Projects/git-host/organisation/project', |
| 29 | + targetBaseDir: "/home/user/Projects/git-host", |
| 30 | + repo: "https://git-host.com/organisation/project.git", |
| 31 | + expected: "/home/user/Projects/git-host/organisation/project", |
32 | 32 | }, |
33 | 33 | { |
34 | | - targetBaseDir: '/home/user/Projects/git-host/organisation', |
35 | | - repo: 'https://git-host.com/organisation/project.git', |
36 | | - expected: '/home/user/Projects/git-host/organisation/project', |
| 34 | + targetBaseDir: "/home/user/Projects/git-host/organisation", |
| 35 | + repo: "https://git-host.com/organisation/project.git", |
| 36 | + expected: "/home/user/Projects/git-host/organisation/project", |
37 | 37 | }, |
38 | 38 | { |
39 | | - targetBaseDir: '/home/user/Projects/git-host/organisation/project', |
40 | | - repo: 'https://git-host.com/organisation/project.git', |
41 | | - expected: '/home/user/Projects/git-host/organisation/project', |
| 39 | + targetBaseDir: "/home/user/Projects/git-host/organisation/project", |
| 40 | + repo: "https://git-host.com/organisation/project.git", |
| 41 | + expected: "/home/user/Projects/git-host/organisation/project", |
42 | 42 | }, |
43 | 43 | ]; |
44 | 44 |
|
|
0 commit comments