Fix tests

This commit is contained in:
Rene Pfeuffer
2020-02-25 17:34:41 +01:00
parent e33d65b097
commit c0e0ed3d17
2 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase {
assertThat(foList)
.extracting("name")
.containsExactly("a.txt", "b.txt", "c", "f.txt");
.containsExactly("c", "a.txt", "b.txt", "f.txt");
}
@Test
@@ -100,7 +100,7 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase {
Collection<FileObject> foList = root.getChildren();
assertThat(foList)
.extracting("name")
.containsExactly("a.txt", "c");
.containsExactly("c", "a.txt");
}
@Test
@@ -207,7 +207,7 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase {
assertThat(foList)
.extracting("name")
.containsExactly("a.txt", "b.txt", "c", "f.txt");
.containsExactly("c", "a.txt", "b.txt", "f.txt");
FileObject c = findFile(foList, "c");
@@ -262,7 +262,7 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase {
Collection<FileObject> foList = root.getChildren();
assertThat(foList).extracting("name").contains("c", "f.txt");
assertThat(foList).extracting("name").contains("b.txt", "f.txt");
assertFalse(root.isTruncated());
}

View File

@@ -118,7 +118,7 @@ describe("sources fetch", () => {
});
it("should fetch the sources of the repository", () => {
fetchMock.getOnce(sourcesUrl, collection);
fetchMock.getOnce(sourcesUrl + "?offset=0", collection);
const expectedActions = [
{
@@ -182,7 +182,7 @@ describe("sources fetch", () => {
});
it("should dispatch FETCH_SOURCES_FAILURE on server error", () => {
fetchMock.getOnce(sourcesUrl, {
fetchMock.getOnce(sourcesUrl + "?offset=0", {
status: 500
});