Skip to content

Commit

Permalink
sort file list
Browse files Browse the repository at this point in the history
  • Loading branch information
kitplummer committed Dec 27, 2022
1 parent bdf826f commit 32783e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/files.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ defmodule Lowendinsight.Files do
files
|> String.split("\n")
|> Enum.reject(& String.contains?(&1, ".git/")|| &1 == "")
|> Enum.sort()
else
:error -> []
end
Expand Down
2 changes: 1 addition & 1 deletion test/files_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule FilesTest do
assert "complete" == report[:state]
repo_data = List.first(report[:report][:repos])
assert "files_path_test" == repo_data[:header][:source_client]
assert %{binary_files: ["lei_bus_128.png", ".index"],
assert %{binary_files: [".index", "lei_bus_128.png"],
binary_files_count: 2,
total_file_count: 176,
has_readme: true,
Expand Down

0 comments on commit 32783e1

Please sign in to comment.