Skip to content

Commit

Permalink
docs: add Testing section to README
Browse files Browse the repository at this point in the history
  • Loading branch information
csirianni committed Dec 24, 2023
1 parent f7c50a7 commit 9bb4916
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,29 @@ yarn dev
```

Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits.

## Testing

You can run tests from `/frontend`:

```console
yarn test
```

This command involves integration testing, so make sure the backend is running and that the leaked bytes are the same. For example,

`/frontend/tests/psi.test.ts`

```javascript
test("sending breached password should return fail status", async () => {
const password = "TestPass1&";
const response = await checkSecurity(password, 1);
expect(response.status).toBe("fail");
});
```

```/backend/src/main.cpp```

```cpp
const size_t offset = 1;
```

0 comments on commit 9bb4916

Please sign in to comment.