mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-05 04:55:50 +01:00
Fix tests
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user