Skip to content

Commit

Permalink
fix:tags can be added while creating organization (PalisadoesFoundati…
Browse files Browse the repository at this point in the history
…on#875)

* fix:tags can be added while creating organization

* fix:null value cannot be added in tags

* new:added tags field in test file
  • Loading branch information
VenomFate-619 authored Jan 27, 2023
1 parent bacc699 commit 2ef3716
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/typeDefs/organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const organization = gql`
isPublic: Boolean!
visibleInSearch: Boolean!
apiUrl: String
tags: [String!]!
}
input UpdateOrganizationInput {
Expand Down
1 change: 1 addition & 0 deletions src/types/generatedGraphQLTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ export type OrganizationInput = {
isPublic: Scalars['Boolean'];
location?: InputMaybe<Scalars['String']>;
name: Scalars['String'];
tags: Array<Scalars['String']>;
visibleInSearch: Scalars['Boolean'];
};

Expand Down
3 changes: 3 additions & 0 deletions tests/resolvers/Mutation/createOrganization.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe("resolvers -> Mutation -> createOrganization", () => {
visibleInSearch: true,
apiUrl: "apiUrl",
location: "location",
tags: ["tag1", "tag2"],
},
};

Expand All @@ -59,6 +60,7 @@ describe("resolvers -> Mutation -> createOrganization", () => {
visibleInSearch: true,
apiUrl: "apiUrl",
location: "location",
tags: ["tag1", "tag2"],
},
};

Expand All @@ -83,6 +85,7 @@ describe("resolvers -> Mutation -> createOrganization", () => {
creator: testUser._id,
admins: [testUser._id],
members: [testUser._id],
tags: ["tag1", "tag2"],
})
);

Expand Down

0 comments on commit 2ef3716

Please sign in to comment.