Re:Ask HN: Can Jasmine Unit Tests Expose Security Vulnerabil...
by jbrowne on Wednesday February 12, 2014 @06:19PM
(#7228141)
Thanks for responding - that's my understanding too. Though if there's something I'm not aware of, I'd love to know!
Thanks for raising the trash data issue. The framework does a pretty good job of set up and tear down before and after each test is run, so I'm not too concerned about the trash data as it's destroyed once the test has completed. (If I'm understanding your point correctly?)
What can be a problem: if you produce sample data during running the tests, you are going to produce a lot of trash data in your production environment. But you shouldn't do it anyway - just mock AJAX calls and so on.