ScottLogic / prompt-injection

Application which investigates defensive measures against prompt injection attacks on an LLM, with a focus on the exposure of external tools.
MIT License
15 stars 10 forks source link

Frontend unit tests: `systemRoleService.ts` #773

Open pmarsh-scottlogic opened 7 months ago

pmarsh-scottlogic commented 7 months ago

use msw to intercept, mock and check HTTP requests.

AC: Unit tests written for each exported method in systemRoleService.ts Testing by tester not necessary, since there should be no changes to the app code!