Skip to content

Commit

Permalink
fix: Fixed more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedylandev committed Sep 2, 2024
1 parent 2fcf673 commit 3a0f45c
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions tests/groups/createGroup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,14 @@ describe("createGroup function", () => {

global.fetch = jest.fn().mockResolvedValueOnce({
ok: true,
json: jest
.fn()
.mockResolvedValueOnce({
data: {
id: "group-123",
name: longNameOptions.name,
is_public: false,
createdAt: "2023-07-26T12:00:00Z",
},
}),
json: jest.fn().mockResolvedValueOnce({
data: {
id: "group-123",
name: longNameOptions.name,
is_public: false,
createdAt: "2023-07-26T12:00:00Z",
},
}),
});

const result = await createGroup(mockConfig, longNameOptions);
Expand Down Expand Up @@ -154,16 +152,14 @@ describe("createGroup function", () => {

global.fetch = jest.fn().mockResolvedValueOnce({
ok: true,
json: jest
.fn()
.mockResolvedValueOnce({
data: {
id: "group-123",
name: "",
is_public: false,
createdAt: "2023-07-26T12:00:00Z",
},
}),
json: jest.fn().mockResolvedValueOnce({
data: {
id: "group-123",
name: "",
is_public: false,
createdAt: "2023-07-26T12:00:00Z",
},
}),
});

const result = await createGroup(mockConfig, emptyNameOptions);
Expand Down

0 comments on commit 3a0f45c

Please sign in to comment.