Skip to content

Commit 8ffa8fa

Browse files
committed
Fix kind
1 parent 6eee97b commit 8ffa8fa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

library/agent/hooks/wrapExport.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ t.test("Agent is not initialized", async (t) => {
1414
{
1515
inspectArgs: () => {},
1616
},
17-
"outgoing_http"
17+
"outgoing_http_op"
1818
);
1919
t.fail();
2020
} catch (e: unknown) {
@@ -49,7 +49,7 @@ t.test("Inspect args", async (t) => {
4949
t.same(args, ["input"]);
5050
},
5151
},
52-
"outgoing_http"
52+
"outgoing_http_op"
5353
);
5454

5555
t.same(toWrap.test("input"), "input");
@@ -71,7 +71,7 @@ t.test("Modify args", async (t) => {
7171
return ["modified"];
7272
},
7373
},
74-
"outgoing_http"
74+
"outgoing_http_op"
7575
);
7676

7777
t.same(toWrap.test("input"), "modified");
@@ -93,7 +93,7 @@ t.test("Modify return value", async (t) => {
9393
return "modified";
9494
},
9595
},
96-
"outgoing_http"
96+
"outgoing_http_op"
9797
);
9898

9999
t.same(toWrap.test(), "modified");
@@ -121,7 +121,7 @@ t.test("Combine interceptors", async (t) => {
121121
return returnVal + "modReturn";
122122
},
123123
},
124-
"outgoing_http"
124+
"outgoing_http_op"
125125
);
126126

127127
t.same(toWrap.test("input"), "modArgsmodReturn");
@@ -149,7 +149,7 @@ t.test("Catches error in interceptors", async (t) => {
149149
throw new Error("Error in interceptor");
150150
},
151151
},
152-
"outgoing_http"
152+
"outgoing_http_op"
153153
);
154154

155155
t.same(toWrap.test(), "test");
@@ -175,7 +175,7 @@ t.test("With callback", async (t) => {
175175
t.same(args, ["input", bindContext(() => {})]);
176176
},
177177
},
178-
"outgoing_http"
178+
"outgoing_http_op"
179179
);
180180

181181
toWrap.test("input", () => {});
@@ -193,7 +193,7 @@ t.test("Wrap non existing method", async (t) => {
193193
{
194194
inspectArgs: () => {},
195195
},
196-
"outgoing_http"
196+
"outgoing_http_op"
197197
);
198198

199199
t.match(logger.getMessages(), [
@@ -216,7 +216,7 @@ t.test("Wrap default export", async (t) => {
216216
t.same(args, ["input"]);
217217
},
218218
},
219-
"outgoing_http"
219+
"outgoing_http_op"
220220
) as Function;
221221

222222
t.same(patched("input"), "input");

0 commit comments

Comments
 (0)