Skip to content

Commit bfabfcc

Browse files
chore: update dependencies
1 parent fba836a commit bfabfcc

28 files changed

Lines changed: 9554 additions & 8795 deletions

File tree

helpers/mock-agent/store-gitlab.js

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -60,42 +60,30 @@ export function mockClient() {
6060
.reply(404, "Not Found")
6161
.persist();
6262

63-
// Update file
64-
agent
65-
.get(origin)
66-
.intercept({ path: filePath, method: "PUT" })
67-
.reply(
68-
200,
69-
{ file_path: "foo.txt", branch: "main" },
70-
{ headers: { "content-type": "application/json" } },
71-
);
72-
7363
// Update and rename file
7464
agent
7565
.get(origin)
76-
.intercept({ path: commitPath, method: "POST", body: /previous_path/ })
66+
.intercept({ path: commitPath, method: "POST" })
7767
.reply(
7868
200,
7969
{ file_path: "bar.txt", message: "message" },
8070
{ headers: { "content-type": "application/json" } },
81-
)
82-
.persist();
71+
);
8372

84-
// Update commit
73+
// Update file
8574
agent
8675
.get(origin)
87-
.intercept({ path: commitPath, method: "POST", body: /.*(foo|bar).txt/ })
76+
.intercept({ path: commitPath, method: "POST" })
8877
.reply(
8978
200,
9079
{ file_path: "foo.txt", message: "message" },
9180
{ headers: { "content-type": "application/json" } },
92-
)
93-
.persist();
81+
);
9482

95-
// Update commit (Unauthorized)
83+
// Update file (Unauthorized)
9684
agent
9785
.get(origin)
98-
.intercept({ path: commitPath, method: "POST", body: /.*401\.txt/ })
86+
.intercept({ path: commitPath, method: "POST" })
9987
.reply(401, "Unauthorized");
10088

10189
// Delete file

0 commit comments

Comments
 (0)