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
16 stars 11 forks source link

Frontend unit tests: `backendService.ts` #766

Open pmarsh-scottlogic opened 9 months ago

pmarsh-scottlogic commented 9 months ago

use msw to intercept, mock and check HTTP requests.

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