Add test running section to README
This commit is contained in:
parent
4f9bde109f
commit
7560d76c4b
@ -39,6 +39,10 @@ curl --request POST \
|
||||
|
||||
Copy over `.env.example` to `.env` and insert your values.
|
||||
|
||||
## Running Tests
|
||||
|
||||
`npm test`.
|
||||
|
||||
## Design Decisions
|
||||
|
||||
- Getting data from Rocket.Chat via (currently) manual mongodb export
|
||||
|
||||
@ -42,7 +42,7 @@ test('creating users', async () => {
|
||||
|
||||
expect(mockedAxios.get).toHaveBeenCalledWith('/_synapse/admin/v1/register')
|
||||
expect(mockedAxios.post).toHaveBeenCalled()
|
||||
// The following test rails with an incorrect return value, for whatever reason.
|
||||
// The following test fails with an incorrect return value, for whatever reason.
|
||||
// Probably because of mutated call logs in jest due to the `delete` or sth.
|
||||
// expect(mockedAxios.post).toHaveBeenCalledWith('/_synapse/admin/v1/register', {
|
||||
// ...matrixUser,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user