verdaccio/test/functional/adduser/logout.js

13 lines
291 B
JavaScript
Raw Normal View History

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')
.status(HTTP_STATUS.OK)
2017-04-19 21:15:28 +02:00
.body_ok(/Logged out/);
});
});
2017-12-02 11:19:08 +01:00
}