Skip to content

Commit 6869787

Browse files
fix: prettier issue
1 parent 6321376 commit 6869787

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/controllers/verifyCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function verifyCommand(
1313
env: env
1414
) {
1515
const token = await generateUniqueToken();
16-
16+
1717
const response = await sendUserDiscordData(
1818
token,
1919
userId,

tests/fixtures/fixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const env = {
143143
DISCORD_TOKEN: "SIGNED_JWT",
144144
};
145145

146-
export const discordUserData = {
146+
export const discordUserData = {
147147
type: "discord",
148148
token: UNIQUE_TOKEN,
149149
attributes: {

tests/unit/handlers/verifyCommand.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ import {
33
VERIFICATION_STRING,
44
} from "../../../src/constants/responses";
55
import config from "../../../config/config";
6-
import { UNIQUE_TOKEN, discordUserData, env, mockDateNow } from "../../fixtures/fixture";
7-
8-
6+
import {
7+
UNIQUE_TOKEN,
8+
discordUserData,
9+
env,
10+
mockDateNow,
11+
} from "../../fixtures/fixture";
912

1013
describe("verifyCommand", () => {
1114
beforeEach(() => {
@@ -21,7 +24,6 @@ describe("verifyCommand", () => {
2124
});
2225

2326
test("should return JSON response when response is ok", async () => {
24-
2527
jest.spyOn(global, "fetch").mockResolvedValueOnce({
2628
ok: true,
2729
status: 200,
@@ -63,7 +65,6 @@ describe("verifyCommand", () => {
6365
});
6466

6567
test("should return INTERNAL_SERVER_ERROR when response is not ok", async () => {
66-
6768
jest.spyOn(global, "fetch").mockResolvedValueOnce({
6869
ok: true,
6970
status: 400, // ERROR STATUS

0 commit comments

Comments
 (0)