fix: Disable showing read messages in unread view (#4324)

This commit is contained in:
Muhsin Keloth
2022-03-31 17:35:39 +05:30
committed by GitHub
parent 0477123f92
commit eff3a50316
5 changed files with 47 additions and 26 deletions

View File

@@ -23,9 +23,8 @@ RSpec.describe '/api/v1/widget/messages', type: :request do
expect(response).to have_http_status(:success)
json_response = JSON.parse(response.body)
# 2 messages created + 2 messages by the email hook
expect(json_response.length).to eq(4)
expect(json_response['payload'].length).to eq(4)
end
end
end