Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data model , proof and request #11

Closed
wants to merge 9 commits into from
Closed

Data model , proof and request #11

wants to merge 9 commits into from

Conversation

R11manish
Copy link
Member

  • data model
  • request
  • proof

with test cases

* call.
*/

async createProof(inputVariables?: createProof_mutationMutationVariables) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should not be optional i guess

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is already optional , as u can see ?

});

expect(createDataModel?.title).toEqual('Test');
}, 40000);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the timeout should be a variable which is constant

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nopes , every test cases takes differenet amount of time , so we can't store into a variable.

const { issuersByDataModel } = await api.dataModel.getIssuersByDataModel(
process.env.DATAMODEL_ID as string,
);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lemme fix

await api.dataModel.getTotalofIssuersByDataModel(
process.env.DATAMODEL_ID as string,
);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lemme fix

const { issuersByDataModelCount } =
await api.dataModel.getIssuersByDataModelCount(
process.env.DATAMODEL_ID as string,
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect missing?


describe('proofs related test', () => {
it('create proof', async () => {
const {} = await api.proof.createProof({});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect missing?

return await this.sdk.createDataModel_mutation({
input: createModelInput,
});
} catch (error: any) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove :any part from all catch blocks just to maintain consistency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

* @returns The `getDataModelsCount` function is returning the result of the `dataModelsCount_query`
* method call, which is a promise.
*/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run pnpm format missing lines in test files as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

@R11manish R11manish closed this Dec 22, 2023
@Siddharth9890 Siddharth9890 deleted the sdk-105 branch January 9, 2024 12:10
@Siddharth9890 Siddharth9890 restored the sdk-105 branch January 9, 2024 12:10
@Siddharth9890 Siddharth9890 deleted the sdk-105 branch January 19, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants