apply prettier, removed flow related config and added tsconfig

This commit is contained in:
Sebastian Sdorra
2019-10-20 18:02:52 +02:00
parent 0e017dcadd
commit 490418d06e
231 changed files with 5771 additions and 30386 deletions

View File

@@ -1,20 +1,20 @@
import fetchMock from 'fetch-mock';
import { CONTENT_TYPE_PASSWORD_OVERWRITE, setPassword } from './setPassword';
import fetchMock from "fetch-mock";
import { CONTENT_TYPE_PASSWORD_OVERWRITE, setPassword } from "./setPassword";
describe('password change', () => {
const SET_PASSWORD_URL = '/users/testuser/password';
const newPassword = 'testpw123';
describe("password change", () => {
const SET_PASSWORD_URL = "/users/testuser/password";
const newPassword = "testpw123";
afterEach(() => {
fetchMock.reset();
fetchMock.restore();
});
it('should set password', done => {
fetchMock.put('/api/v2' + SET_PASSWORD_URL, 204, {
it("should set password", done => {
fetchMock.put("/api/v2" + SET_PASSWORD_URL, 204, {
headers: {
'content-type': CONTENT_TYPE_PASSWORD_OVERWRITE,
},
"content-type": CONTENT_TYPE_PASSWORD_OVERWRITE
}
});
setPassword(SET_PASSWORD_URL, newPassword).then(content => {