2018-06-21 08:10:33 +02:00
|
|
|
import {HTTP_STATUS} from "../../../src/lib/constants";
|
|
|
|
|
2017-12-02 11:19:08 +01:00
|
|
|
export default function(server) {
|
2017-04-19 21:15:28 +02:00
|
|
|
|
2017-12-02 11:19:08 +01:00
|
|
|
describe('logout', () => {
|
|
|
|
test('should log out', () => {
|
2016-08-10 12:14:08 +02:00
|
|
|
return server.logout('some-token')
|
2018-06-21 08:10:33 +02:00
|
|
|
.status(HTTP_STATUS.OK)
|
2017-04-19 21:15:28 +02:00
|
|
|
.body_ok(/Logged out/);
|
|
|
|
});
|
|
|
|
});
|
2017-12-02 11:19:08 +01:00
|
|
|
}
|