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

Create tests in Insomnia #108

Merged
merged 3 commits into from
Oct 1, 2024
Merged

Create tests in Insomnia #108

merged 3 commits into from
Oct 1, 2024

Conversation

cloudjumpercat
Copy link
Contributor

  • how to page covering how to create tests in Insomnia

Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 49abce8
🔍 Latest deploy log https://app.netlify.com/sites/kongdeveloper/deploys/66fac1cb5face10008e42948
😎 Deploy Preview https://deploy-preview-108--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cloudjumpercat cloudjumpercat marked this pull request as ready for review September 27, 2024 20:55
Comment on lines +65 to +71
```javascript
const response1 = await insomnia.send();
const body = JSON.parse(response1.data);
expect(body).to.have.property('meal_options');
expect(body.meal_options).to.be.an('array');
expect(body).to.be.an('object');
```
Copy link
Contributor Author

@cloudjumpercat cloudjumpercat Sep 30, 2024

Choose a reason for hiding this comment

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

Note for reviewers: This was created with ChatGPT. Although the test passes, I don't fully trust it or understand it. Is meal_options really nested? Is this really testing the right thing?

Also, my gut is telling me that some of these lines might be extraneous/unnecessary.

Comment on lines +64 to +73
```javascript
const response1 = await insomnia.send();
const body = JSON.parse(response1.data);
expect(body).to.be.an('object');
expect(body).to.have.property('meal_options');
expect(body.meal_options).to.be.an('array');
if (body.meal_options.length > 0) {
expect(body.meal_options[0]).to.be.a('string');
}
```
Copy link
Contributor Author

@cloudjumpercat cloudjumpercat Sep 30, 2024

Choose a reason for hiding this comment

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

Note for reviewers: This was created with ChatGPT. Although the test passes, I don't fully trust it or understand it. Is meal_options really nested? Is this really testing the right thing?

Also, my gut is telling me that some of these lines might be extraneous/unnecessary.

@cloudjumpercat cloudjumpercat merged commit b1d7c6c into main Oct 1, 2024
5 checks passed
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.

1 participant