Skip to content

Commit

Permalink
fix(ci): ci error (#7454)
Browse files Browse the repository at this point in the history
Co-authored-by: Almeida <almeidx@pm.me>
  • Loading branch information
suneettipirneni and almeidx authored Feb 13, 2022
1 parent e8252ed commit 0af9bc8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1337,5 +1337,5 @@ const selectMenu = new SelectMenuComponent({
});

new ActionRow({
components: [selectMenu, button],
components: [selectMenu.toJSON(), button.toJSON()],
});
14 changes: 14 additions & 0 deletions packages/rest/__tests__/util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DefaultRestOptions } from '../src';

export function genPath(path: string) {
return `/api/v${DefaultRestOptions.version}${path}`;
}

export function jsonHeaders(headers: Record<string, string> = {}) {
return {
headers: {
'content-type': 'application/json',
...headers,
},
};
}

0 comments on commit 0af9bc8

Please sign in to comment.