Skip to content

Commit 01e9df5

Browse files
committed
fix fmt checking
1 parent d7a04f3 commit 01e9df5

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/test/oauth.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
assertEquals,
3-
assertThrows
3+
assertThrows,
44
} from "https://deno.land/[email protected]/testing/asserts.ts";
55
import { authenticator, authParams, scopes } from "../mod.ts";
66

@@ -12,10 +12,10 @@ Deno.test({
1212
const creds: authParams = {
1313
client_id: "testId",
1414
redirect_uri: "testhost",
15-
scope: s
15+
scope: s,
1616
};
1717
const created_url: string = auth.authenticate(creds);
18-
const expected_url =
18+
const expected_url =
1919
"https://accounts.google.com/o/oauth2/v2/auth?response_type=token&client_id=" +
2020
`${creds.client_id}` + "&redirect_uri=" +
2121
`${creds.redirect_uri}` + "&scope=" +
@@ -31,7 +31,7 @@ Deno.test({
3131
const creds: authParams = {
3232
client_id: "testId",
3333
redirect_uri: "testhost",
34-
scope: "http://invalidscope"
34+
scope: "http://invalidscope",
3535
};
3636
assertThrows((): void => {
3737
throw new TypeError("Invalid scope: " + creds.scope);

src/youtube-deno.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class YouTube {
7777

7878
captions_insert(
7979
params: schemas.schema_captions_insert,
80-
body: Record<string, unknown>
80+
body: Record<string, unknown>,
8181
) {
8282
const method = "captions";
8383
const request_url = this.create_url(method, params);
@@ -96,7 +96,7 @@ export class YouTube {
9696

9797
captions_update(
9898
params: schemas.schema_captions_update,
99-
body: Record<string, unknown>
99+
body: Record<string, unknown>,
100100
) {
101101
const method = "captions";
102102
const request_url = this.create_url(method, params);
@@ -180,7 +180,7 @@ export class YouTube {
180180

181181
channels_update(
182182
params: schemas.schema_channels_update,
183-
body: Record<string, unknown>
183+
body: Record<string, unknown>,
184184
) {
185185
const method = "channels";
186186
const request_url = this.create_url(method, params);
@@ -273,7 +273,7 @@ export class YouTube {
273273

274274
comments_insert(
275275
params: schemas.schema_comments_insert,
276-
body: Record<string, unknown>
276+
body: Record<string, unknown>,
277277
) {
278278
const method = "comments";
279279
const request_url = this.create_url(method, params);
@@ -292,7 +292,7 @@ export class YouTube {
292292

293293
comments_update(
294294
params: schemas.schema_comments_update,
295-
body?: Record<string, unknown>
295+
body?: Record<string, unknown>,
296296
) {
297297
const method = "comments";
298298
const request_url = this.create_url(method, params);
@@ -501,7 +501,7 @@ export class YouTube {
501501

502502
playlists_insert(
503503
params: schemas.schema_playlists_insert,
504-
body: Record<string, unknown>
504+
body: Record<string, unknown>,
505505
) {
506506
const method = "playlists";
507507
const request_url = this.create_url(method, params);
@@ -520,7 +520,7 @@ export class YouTube {
520520

521521
playlists_update(
522522
params: schemas.schema_playlists_update,
523-
body: Record<string, unknown>
523+
body: Record<string, unknown>,
524524
) {
525525
const method = "playlists";
526526
const request_url = this.create_url(method, params);
@@ -606,7 +606,7 @@ export class YouTube {
606606

607607
thumbnails_set(
608608
params: schemas.schema_thumbnails_set,
609-
body?: Record<string, unknown>
609+
body?: Record<string, unknown>,
610610
) {
611611
const method = "thumbnails/set";
612612
const request_url = this.create_url(method, params);
@@ -663,7 +663,7 @@ export class YouTube {
663663

664664
videos_insert(
665665
params: schemas.schema_videos_insert,
666-
body: Record<string, unknown>
666+
body: Record<string, unknown>,
667667
) {
668668
const method = "videos";
669669
const request_url = this.create_url(method, params);
@@ -682,7 +682,7 @@ export class YouTube {
682682

683683
videos_update(
684684
params: schemas.schema_videos_update,
685-
body: Record<string, unknown>
685+
body: Record<string, unknown>,
686686
) {
687687
const method = "videos";
688688
const request_url = this.create_url(method, params);
@@ -725,7 +725,7 @@ export class YouTube {
725725

726726
videos_reportAbuse(
727727
params: schemas.schema_videos_reportAbuse,
728-
body: Record<string, unknown>
728+
body: Record<string, unknown>,
729729
) {
730730
// Provide an empty object {} as first function parameter if you do not
731731
// want to pass any optional url parameters.
@@ -759,7 +759,7 @@ export class YouTube {
759759

760760
watermarks_set(
761761
params: schemas.schema_watermarks_set,
762-
body: Record<string, unknown>
762+
body: Record<string, unknown>,
763763
) {
764764
const method = "watermarks/set";
765765
const request_url = this.create_url(method, params);

0 commit comments

Comments
 (0)