mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
Make entries sorting configurable
This commit is contained in:
parent
453ff64f29
commit
2f1367a8d4
28 changed files with 253 additions and 193 deletions
|
@ -57,15 +57,15 @@ func TestValidateRange(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestGetOppositeDirection(t *testing.T) {
|
||||
if GetOppositeDirection("asc") != "desc" {
|
||||
if OppositeDirection("asc") != "desc" {
|
||||
t.Errorf(`The opposite direction of "asc" should be "desc"`)
|
||||
}
|
||||
|
||||
if GetOppositeDirection("desc") != "asc" {
|
||||
if OppositeDirection("desc") != "asc" {
|
||||
t.Errorf(`The opposite direction of "desc" should be "asc"`)
|
||||
}
|
||||
|
||||
if GetOppositeDirection("invalid") != "asc" {
|
||||
if OppositeDirection("invalid") != "asc" {
|
||||
t.Errorf(`An invalid direction should return "asc"`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue