GET requests should not use json middleware
This commit is contained in:
@@ -246,7 +246,8 @@ describe('Profile API', function () {
|
||||
|
||||
it('can get secret', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/profile/twofactorauthentication_secret`)
|
||||
.query({ access_token: user.token });
|
||||
.query({ access_token: user.token })
|
||||
.send({});
|
||||
|
||||
secret = response.body.secret;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user