Skip to content

Commit 72fd66c

Browse files
committed
fix(jira): remove no-op propDefinition mapper and guard console.log restore in test
1 parent e45945a commit 72fd66c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

components/jira/actions/get-issue-picker-suggestions/get-issue-picker-suggestions.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "jira-get-issue-picker-suggestions",
55
name: "Get Issue Picker Suggestions",
66
description: "Returns lists of issues matching a query string. [See the documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-issue-picker-get)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
type: "action",
99
annotations: {
1010
readOnlyHint: true,
@@ -37,7 +37,6 @@ export default {
3737
propDefinition: [
3838
app,
3939
"projectID",
40-
() => ({}),
4140
],
4241
},
4342
showSubTasks: {

components/jira/common/__tests__/resolve-cloud-id.test.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,13 @@ await test("picks first cloud and logs when multiple instances are found", async
168168
});
169169

170170
const originalLog = console.log;
171-
console.log = (...args) => logs.push(args.join(" "));
172-
173-
const id = await app._resolveCloudId();
174-
175-
console.log = originalLog;
171+
let id;
172+
try {
173+
console.log = (...args) => logs.push(args.join(" "));
174+
id = await app._resolveCloudId();
175+
} finally {
176+
console.log = originalLog;
177+
}
176178

177179
assert.equal(id, "first", "should pick the first cloud");
178180
assert.ok(

0 commit comments

Comments
 (0)