repository-provider-test-support 1.8.15 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/package.json +4 -4
- package/src/entry-list-test.mjs +1 -1
- package/src/module.mjs +1 -0
- package/src/repositories.mjs +90 -0
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider-test-support",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"content-entry": "^3.0.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"ava": "^
|
|
35
|
-
"c8": "^7.
|
|
34
|
+
"ava": "^4.0.1",
|
|
35
|
+
"c8": "^7.11.0",
|
|
36
36
|
"documentation": "^13.2.5",
|
|
37
|
-
"repository-provider": "^26.
|
|
37
|
+
"repository-provider": "^26.1.2",
|
|
38
38
|
"semantic-release": "^18.0.1"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
package/src/entry-list-test.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export async function entryListTest(t, branch, pattern, entryFixtures) {
|
|
|
20
20
|
t.true(entry.isCollection, `isCollection '${entry.name}'`);
|
|
21
21
|
} else {
|
|
22
22
|
t.true(
|
|
23
|
-
(await entry.
|
|
23
|
+
(await entry.string).startsWith(ef.startsWith),
|
|
24
24
|
`${entry.name} '${ef.startsWith}'`
|
|
25
25
|
);
|
|
26
26
|
|
package/src/module.mjs
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./repository-test.mjs";
|
|
|
11
11
|
export * from "./pull-request-test.mjs";
|
|
12
12
|
export * from "./entry-list-test.mjs";
|
|
13
13
|
export * from "./messages.mjs";
|
|
14
|
+
export * from "./repositories.mjs";
|
|
14
15
|
|
|
15
16
|
export const REPOSITORY_NAME = "arlac77/sync-test-repository";
|
|
16
17
|
export const REPOSITORY_NAME_GITHUB_HTTP = `https://github.com/${REPOSITORY_NAME}.git`;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export const githubRepositories = {
|
|
2
|
+
"https://github.com/arlac77/sync-test-repository.git#mybranch": {
|
|
3
|
+
base: "https://github.com/",
|
|
4
|
+
group: "arlac77",
|
|
5
|
+
repository: "sync-test-repository",
|
|
6
|
+
branch: "mybranch"
|
|
7
|
+
},
|
|
8
|
+
"https://user:password@github.com/arlac77/sync-test-repository.git#mybranch": {
|
|
9
|
+
base: "https://github.com/",
|
|
10
|
+
group: "arlac77",
|
|
11
|
+
repository: "sync-test-repository",
|
|
12
|
+
branch: "mybranch"
|
|
13
|
+
},
|
|
14
|
+
"https://user@github.com/arlac77/sync-test-repository.git#mybranch": {
|
|
15
|
+
base: "https://github.com/",
|
|
16
|
+
group: "arlac77",
|
|
17
|
+
repository: "sync-test-repository",
|
|
18
|
+
branch: "mybranch"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const bitbucketRepositories = {
|
|
23
|
+
"git@bitbucket.org:arlac77/sync-test-repository.git#mybranch": {
|
|
24
|
+
base: "git@bitbucket.org:",
|
|
25
|
+
group: "arlac77",
|
|
26
|
+
repository: "sync-test-repository",
|
|
27
|
+
branch: "mybranch"
|
|
28
|
+
},
|
|
29
|
+
"git@bitbucket.org/arlac77/sync-test-repository.git": {
|
|
30
|
+
base: "git@bitbucket.org/",
|
|
31
|
+
group: "arlac77",
|
|
32
|
+
repository: "sync-test-repository"
|
|
33
|
+
},
|
|
34
|
+
"https://arlac77@bitbucket.org/arlac77/sync-test-repository.git": {
|
|
35
|
+
base: "https://bitbucket.org/",
|
|
36
|
+
group: "arlac77",
|
|
37
|
+
repository: "sync-test-repository"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const otherRepositories = {
|
|
42
|
+
"http://otherdomain.com/arlac77/sync-test-repository.git#mybranch": {
|
|
43
|
+
base: "http://otherdomain.com/",
|
|
44
|
+
group: "arlac77",
|
|
45
|
+
repository: "sync-test-repository",
|
|
46
|
+
branch: "mybranch"
|
|
47
|
+
},
|
|
48
|
+
"git+http://otherdomain.com/arlac77/sync-test-repository.git#mybranch": {
|
|
49
|
+
base: "http://otherdomain.com/",
|
|
50
|
+
group: "arlac77",
|
|
51
|
+
repository: "sync-test-repository",
|
|
52
|
+
branch: "mybranch"
|
|
53
|
+
},
|
|
54
|
+
"git+http://arlac77@otherdomain.com/prefix/arlac77/sync-test-repository.git": {
|
|
55
|
+
base: "http://otherdomain.com/",
|
|
56
|
+
group: "arlac77",
|
|
57
|
+
repository: "sync-test-repository"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const fragmentRepositories = {
|
|
62
|
+
"": {},
|
|
63
|
+
"abc/def/g": { group: "abc", repository: "def" },
|
|
64
|
+
"xxx/abc/def.git#mybranch": {
|
|
65
|
+
group: "abc",
|
|
66
|
+
repository: "def",
|
|
67
|
+
branch: "mybranch"
|
|
68
|
+
},
|
|
69
|
+
abc: { repository: "abc" },
|
|
70
|
+
" abc/def": { group: "abc", repository: "def" },
|
|
71
|
+
"abc/def#mybranch ": {
|
|
72
|
+
group: "abc",
|
|
73
|
+
repository: "def",
|
|
74
|
+
branch: "mybranch"
|
|
75
|
+
},
|
|
76
|
+
"abc/def.git": { group: "abc", repository: "def" },
|
|
77
|
+
"abc/def.git#mybranch": {
|
|
78
|
+
group: "abc",
|
|
79
|
+
repository: "def",
|
|
80
|
+
branch: "mybranch"
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const repositories = {
|
|
85
|
+
...fragmentRepositories,
|
|
86
|
+
...githubRepositories,
|
|
87
|
+
...bitbucketRepositories,
|
|
88
|
+
...otherRepositories
|
|
89
|
+
};
|
|
90
|
+
|