blob: 34bc45eb03957a62436761a71ce9408b6b46bc68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* eslint-disable no-undef */
import { axios } from '../utils';
// This should never succeed as we are not passing a token. We are expecting a 401
test('Verify token', async () => {
try {
await axios.get('/api/verify');
expect(true).toBe(false);
} catch (err) {
expect(err.response.status).toBe(401);
}
});
|