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,8 +1,8 @@
import fetchMock from 'fetch-mock';
import { getHistory } from './history';
import fetchMock from "fetch-mock";
import { getHistory } from "./history";
describe('get content type', () => {
const FILE_URL = '/repositories/scmadmin/TestRepo/history/file';
describe("get content type", () => {
const FILE_URL = "/repositories/scmadmin/TestRepo/history/file";
afterEach(() => {
fetchMock.reset();
@@ -14,32 +14,32 @@ describe('get content type', () => {
pageTotal: 10,
_links: {
self: {
href: '/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10',
href: "/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10"
},
first: {
href: '/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10',
href: "/repositories/scmadmin/TestRepo/history/file?page=0&pageSize=10"
},
next: {
href: '/repositories/scmadmin/TestRepo/history/file?page=1&pageSize=10',
href: "/repositories/scmadmin/TestRepo/history/file?page=1&pageSize=10"
},
last: {
href: '/repositories/scmadmin/TestRepo/history/file?page=9&pageSize=10',
},
href: "/repositories/scmadmin/TestRepo/history/file?page=9&pageSize=10"
}
},
_embedded: {
changesets: [
{
id: '1234',
id: "1234"
},
{
id: '2345',
},
],
},
id: "2345"
}
]
}
};
it('should return history', done => {
fetchMock.get('/api/v2' + FILE_URL, history);
it("should return history", done => {
fetchMock.get("/api/v2" + FILE_URL, history);
getHistory(FILE_URL).then(content => {
expect(content.changesets).toEqual(history._embedded.changesets);