Skip to content

Simple test enhancement#257

Open
jrodenbostel wants to merge 1 commit intomeanjs:masterfrom
jrodenbostel:crud-delete-test-failure-diagnosis
Open

Simple test enhancement#257
jrodenbostel wants to merge 1 commit intomeanjs:masterfrom
jrodenbostel:crud-delete-test-failure-diagnosis

Conversation

@jrodenbostel
Copy link
Copy Markdown

I'm proposing this small change to help diagnose ignored save errors while testing CRUD module server routes, specifically testing the case that covers someone 'should not be able to delete an <%= humanizedSingularName %> if not signed in'. I'm working on a project where the request param and model property names don't match in all cases, and having this change in place helped me diagnose an issue that had taken an embarrassingly long time to fix.

@codydaig
Copy link
Copy Markdown
Member

@jrodenbostel

Sorry for the delay in response. I'm all for this. However, this stems from the project. So if you can make the PR over there (github.com/meanjs/mean) and get it merged, I'm happy to merge this.

@jrodenbostel
Copy link
Copy Markdown
Author

@codydaig No problem. Not sure I follow your suggestion, though. Are you saying that I should make this change to the article module's server/route tests (https://github.com/meanjs/mean/blob/master/modules/articles/tests/server/article.server.routes.tests.js)?

jrodenbostel pushed a commit to jrodenbostel/mean that referenced this pull request Nov 30, 2016
Simple test enhancement proposed by @jrodenbostel.  Eases troubleshooting when Article save fails during test execution.

Further reference here: meanjs/generator-meanjs#257

Fixes meanjs#1658
mleanos pushed a commit to meanjs/mean that referenced this pull request Jun 13, 2017
* feat(articles): Simple test enhancement

Simple test enhancement proposed by @jrodenbostel.  Eases troubleshooting when Article save fails during test execution.

Further reference here: meanjs/generator-meanjs#257

Fixes #1658

* updated per @simison's request
lupinthethirdgentleman pushed a commit to lupinthethirdgentleman/mean-dashboard that referenced this pull request Aug 5, 2021
* feat(articles): Simple test enhancement

Simple test enhancement proposed by @jrodenbostel.  Eases troubleshooting when Article save fails during test execution.

Further reference here: meanjs/generator-meanjs#257

Fixes #1658

* updated per @simison's request
siriusblack-7c added a commit to siriusblack-7c/MEAN that referenced this pull request May 30, 2025
* feat(articles): Simple test enhancement

Simple test enhancement proposed by @jrodenbostel.  Eases troubleshooting when Article save fails during test execution.

Further reference here: meanjs/generator-meanjs#257

Fixes #1658

* updated per @simison's request
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