diff --git a/src/version3/issueComments.ts b/src/version3/issueComments.ts index e2a89853d..f894c5c28 100644 --- a/src/version3/issueComments.ts +++ b/src/version3/issueComments.ts @@ -145,19 +145,18 @@ export class IssueComments { */ async addComment(parameters: Parameters.AddComment, callback?: never): Promise; async addComment(parameters: Parameters.AddComment, callback?: Callback): Promise { - const body = - typeof parameters.comment === 'string' - ? { - type: 'doc', - version: 1, - content: [ - { - type: 'paragraph', - content: [{ type: 'text', text: parameters.comment }], - }, - ], - } - : parameters.comment; + const body = typeof parameters.comment === 'string' + ? { + type: 'doc', + version: 1, + content: [ + { + type: 'paragraph', + content: [{ type: 'text', text: parameters.comment }], + }, + ], + } + : parameters.comment; const config: RequestConfig = { url: `/rest/api/3/issue/${parameters.issueIdOrKey}/comment`, diff --git a/src/version3/parameters/createIssue.ts b/src/version3/parameters/createIssue.ts index 39d01ad98..c5f4252dd 100644 --- a/src/version3/parameters/createIssue.ts +++ b/src/version3/parameters/createIssue.ts @@ -1,4 +1,6 @@ -import type { Document, IssueUpdateDetails, Project, TimeTrackingDetails } from '../models/index.js'; +import type { + Document, IssueUpdateDetails, Project, TimeTrackingDetails, +} from '../models/index.js'; export interface CreateIssue extends Omit { /** diff --git a/tests/integration/agile/sprint.test.ts b/tests/integration/agile/sprint.test.ts index 19a44da2d..d66a428a4 100644 --- a/tests/integration/agile/sprint.test.ts +++ b/tests/integration/agile/sprint.test.ts @@ -1,7 +1,9 @@ import { afterAll, beforeAll, test } from 'vitest'; import { AgileModels } from '../../../src/index.js'; import { Constants } from '../constants.js'; -import { createAgileProject, deleteAgileProject, getAgileClient, getVersion3Client } from '../utils/index.js'; +import { + createAgileProject, deleteAgileProject, getAgileClient, getVersion3Client, +} from '../utils/index.js'; const client = getAgileClient(); diff --git a/tests/integration/version2/issueVotes.test.ts b/tests/integration/version2/issueVotes.test.ts index d976c87c8..b79b2c2cc 100644 --- a/tests/integration/version2/issueVotes.test.ts +++ b/tests/integration/version2/issueVotes.test.ts @@ -1,6 +1,8 @@ import { afterAll, beforeAll, test } from 'vitest'; import type { CreatedIssue } from '../../../src/version2/models/index.js'; -import { cleanupEnvironment, createIssue, getVersion2Client, prepareEnvironment } from '../utils/index.js'; +import { + cleanupEnvironment, createIssue, getVersion2Client, prepareEnvironment, +} from '../utils/index.js'; const client = getVersion2Client(); let createdIssue: CreatedIssue; diff --git a/tests/integration/version3/issueVotes.test.ts b/tests/integration/version3/issueVotes.test.ts index ef394535d..b1c3557b8 100644 --- a/tests/integration/version3/issueVotes.test.ts +++ b/tests/integration/version3/issueVotes.test.ts @@ -1,6 +1,8 @@ import { afterAll, beforeAll, test } from 'vitest'; import type { CreatedIssue } from '../../../src/version3/models/index.js'; -import { cleanupEnvironment, createIssue, getVersion3Client, prepareEnvironment } from '../utils/index.js'; +import { + cleanupEnvironment, createIssue, getVersion3Client, prepareEnvironment, +} from '../utils/index.js'; const client = getVersion3Client(); let createdIssue: CreatedIssue; diff --git a/tests/unit/clients/baseClient.test.ts b/tests/unit/clients/baseClient.test.ts index ae6094fb9..f2acd3465 100644 --- a/tests/unit/clients/baseClient.test.ts +++ b/tests/unit/clients/baseClient.test.ts @@ -81,8 +81,7 @@ test("shouldn't display error message for correct host urls", ({ expect }) => { }); test('should display error message for incorrect host url', ({ expect }) => { - const errorMessage = - "Couldn't parse the host URL. Perhaps you forgot to add 'http://' or 'https://' at the beginning of the URL?"; + const errorMessage = "Couldn't parse the host URL. Perhaps you forgot to add 'http://' or 'https://' at the beginning of the URL?"; expect(() => new BaseClient({ host: '' })).toThrowError(errorMessage); expect(() => new BaseClient({ host: 'localhost' })).toThrowError(errorMessage); diff --git a/tests/unit/createClient.test.ts b/tests/unit/createClient.test.ts index c7dc9e6a2..be5d0791a 100644 --- a/tests/unit/createClient.test.ts +++ b/tests/unit/createClient.test.ts @@ -1,5 +1,7 @@ import { test } from 'vitest'; -import { AgileClient, BaseClient, ClientType, createClient, Version2Client, Version3Client } from '../../src/index.js'; +import { + AgileClient, BaseClient, ClientType, createClient, Version2Client, Version3Client, +} from '../../src/index.js'; const defaultConfig = { host: 'http://localhost' };