~rockorager/go-jmap

d4657809dcf8781fa7103eba2fee0fe8d164f17e — Brandon Sprague 3 months ago 1db9596
Fix tests
2 files changed, 2 insertions(+), 2 deletions(-)

M mail/mailbox/query_test.go
M mail/mailbox/sort_test.go
M mail/mailbox/query_test.go => mail/mailbox/query_test.go +1 -1
@@ 23,6 23,6 @@ func TestQuery(t *testing.T) {
	}
	data, err := json.Marshal(query)
	assert.NoError(err)
	expected := `{"accountId":"xyz","filter":{"name":"Inbox"},"sort":[{"property":"name"}],"limit":10}`
	expected := `{"accountId":"xyz","filter":{"name":"Inbox"},"sort":[{"property":"name","isAscending":false}],"limit":10}`
	assert.Equal(expected, string(data))
}

M mail/mailbox/sort_test.go => mail/mailbox/sort_test.go +1 -1
@@ 18,6 18,6 @@ func TestSort(t *testing.T) {
	}
	data, err := json.Marshal(query)
	assert.NoError(err)
	expected := `{"sort":[{"property":"name"}]}`
	expected := `{"sort":[{"property":"name","isAscending":false}]}`
	assert.Equal(expected, string(data))
}