Skip to content

Commit

Permalink
Change name of fetchProjectsBySlugQuery field
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Sep 28, 2023
1 parent db91549 commit 704cb98
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
44 changes: 22 additions & 22 deletions src/resolvers/projectResolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
fetchLikedProjectsQuery,
fetchMultiFilterAllProjectsQuery,
fetchNewProjectsPerDate,
fetchProjectsBySlugQuery,
fetchProjectBySlugQuery,
fetchProjectUpdatesQuery,
fetchSimilarProjectsBySlugQuery,
getProjectsAcceptTokensQuery,
Expand Down Expand Up @@ -5324,7 +5324,7 @@ function projectBySlugTestCases() {
const result = await axios.post(
graphqlUrl,
{
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
connectedWalletUserId: user!.id,
Expand Down Expand Up @@ -5367,7 +5367,7 @@ function projectBySlugTestCases() {
}).save();

const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
connectedWalletUserId: user!.id,
Expand All @@ -5390,7 +5390,7 @@ function projectBySlugTestCases() {
});

const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
},
Expand Down Expand Up @@ -5448,7 +5448,7 @@ function projectBySlugTestCases() {

await refreshProjectPowerView();
const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
},
Expand Down Expand Up @@ -5484,7 +5484,7 @@ function projectBySlugTestCases() {
order: 1,
}).save();
const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: projectWithCampaign.slug,
},
Expand All @@ -5497,7 +5497,7 @@ function projectBySlugTestCases() {
assert.isNotEmpty(project.campaigns);

const projectWithoutCampaignResult = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: projectWithoutCampaign.slug,
},
Expand Down Expand Up @@ -5527,7 +5527,7 @@ function projectBySlugTestCases() {
order: 1,
}).save();
const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: projectWithCampaign.slug,
},
Expand All @@ -5541,7 +5541,7 @@ function projectBySlugTestCases() {
assert.equal(project.campaigns[0].id, campaign.id);

const projectWithoutCampaignResult = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
// and old project that I'm sure it would not be in the Newest campaign
slug: SEED_DATA.FIRST_PROJECT.slug,
Expand Down Expand Up @@ -5610,7 +5610,7 @@ function projectBySlugTestCases() {
order: 1,
}).save();
const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: projectWithCampaign.slug,
},
Expand All @@ -5624,7 +5624,7 @@ function projectBySlugTestCases() {
assert.equal(fetchedProject.campaigns[0].id, campaign.id);

const projectWithoutCampaignResult = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: projectWithoutCampaign.slug,
},
Expand Down Expand Up @@ -5659,7 +5659,7 @@ function projectBySlugTestCases() {
order: 1,
}).save();
const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: previousSlug,
},
Expand Down Expand Up @@ -5755,7 +5755,7 @@ function projectBySlugTestCases() {
await refreshProjectFuturePowerView();

const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
},
Expand Down Expand Up @@ -5850,7 +5850,7 @@ function projectBySlugTestCases() {
await refreshProjectFuturePowerView(false);

let result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
},
Expand All @@ -5865,7 +5865,7 @@ function projectBySlugTestCases() {
await refreshProjectFuturePowerView(true);

result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
},
Expand All @@ -5884,7 +5884,7 @@ function projectBySlugTestCases() {
});

const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: draftedProject.slug,
},
Expand All @@ -5908,7 +5908,7 @@ function projectBySlugTestCases() {
const result = await axios.post(
graphqlUrl,
{
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: draftedProject.slug,
connectedWalletUserId: SEED_DATA.FIRST_USER.id,
Expand Down Expand Up @@ -5939,7 +5939,7 @@ function projectBySlugTestCases() {
const result = await axios.post(
graphqlUrl,
{
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: draftedProject.slug,
},
Expand Down Expand Up @@ -5967,7 +5967,7 @@ function projectBySlugTestCases() {
});

const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project.slug,
},
Expand All @@ -5991,7 +5991,7 @@ function projectBySlugTestCases() {
const result = await axios.post(
graphqlUrl,
{
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project.slug,
connectedWalletUserId: SEED_DATA.FIRST_USER.id,
Expand Down Expand Up @@ -6022,7 +6022,7 @@ function projectBySlugTestCases() {
const result = await axios.post(
graphqlUrl,
{
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: cancelledProject.slug,
},
Expand Down Expand Up @@ -6080,7 +6080,7 @@ function projectBySlugTestCases() {
await updateInstantBoosting();

const result = await axios.post(graphqlUrl, {
query: fetchProjectsBySlugQuery,
query: fetchProjectBySlugQuery,
variables: {
slug: project1.slug,
},
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/qfRoundHistoryResolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import moment from 'moment';
import { fillQfRoundHistory } from '../repositories/qfRoundHistoryRepository';
import axios from 'axios';
import {
fetchProjectsBySlugQuery,
fetchProjectBySlugQuery,
getQfRoundHistoryQuery,
} from '../../test/graphqlQueries';

Expand Down
2 changes: 1 addition & 1 deletion test/graphqlQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ export const getQfRoundHistoryQuery = `
}
`;

export const fetchProjectsBySlugQuery = `
export const fetchProjectBySlugQuery = `
query (
$slug: String!
) {
Expand Down

0 comments on commit 704cb98

Please sign in to comment.