Skip to content

Commit bb71041

Browse files
chore: Update tests to not use deprecator ctor (#411)
1 parent acc5d65 commit bb71041

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/todoist-api.activities.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getSyncBaseUri, ENDPOINT_REST_ACTIVITIES } from './consts/endpoints'
44
import { server, http, HttpResponse } from './test-utils/msw-setup'
55

66
function getTarget(baseUrl = 'https://api.todoist.com') {
7-
return new TodoistApi(DEFAULT_AUTH_TOKEN, baseUrl)
7+
return new TodoistApi(DEFAULT_AUTH_TOKEN, { baseUrl })
88
}
99

1010
const DEFAULT_ACTIVITY_RESPONSE: ActivityEvent[] = [

src/todoist-api.move-task.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { server, http, HttpResponse } from './test-utils/msw-setup'
55
import { getTaskUrl } from './utils/url-helpers'
66

77
function getTarget(baseUrl = 'https://api.todoist.com') {
8-
return new TodoistApi(DEFAULT_AUTH_TOKEN, baseUrl)
8+
return new TodoistApi(DEFAULT_AUTH_TOKEN, { baseUrl })
99
}
1010

1111
describe('TodoistApi moveTask', () => {

src/todoist-api.move-tasks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type SyncPayload = {
2121
}
2222

2323
function getTarget(baseUrl = 'https://api.todoist.com') {
24-
return new TodoistApi(DEFAULT_AUTH_TOKEN, baseUrl)
24+
return new TodoistApi(DEFAULT_AUTH_TOKEN, { baseUrl })
2525
}
2626

2727
describe('TodoistApi moveTasks', () => {

src/todoist-api.tasks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { server, http, HttpResponse } from './test-utils/msw-setup'
2020
import { getTaskUrl } from './utils/url-helpers'
2121

2222
function getTarget(baseUrl = 'https://api.todoist.com') {
23-
return new TodoistApi(DEFAULT_AUTH_TOKEN, baseUrl)
23+
return new TodoistApi(DEFAULT_AUTH_TOKEN, { baseUrl })
2424
}
2525

2626
describe('TodoistApi task endpoints', () => {

src/todoist-api.user.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getSyncBaseUri, ENDPOINT_REST_USER, ENDPOINT_REST_PRODUCTIVITY } from '
44
import { server, http, HttpResponse } from './test-utils/msw-setup'
55

66
function getTarget(baseUrl = 'https://api.todoist.com') {
7-
return new TodoistApi(DEFAULT_AUTH_TOKEN, baseUrl)
7+
return new TodoistApi(DEFAULT_AUTH_TOKEN, { baseUrl })
88
}
99

1010
const DEFAULT_CURRENT_USER_RESPONSE: CurrentUser = {

0 commit comments

Comments
 (0)