This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/test/javascripts/fixtures/notification_fixtures.js.es6
Guo Xiang Tan fcb7422213 DEV: Avoid hard-coding notification types integer in client side code.
Co-authored-by: Bianca Nenciu <nenciu.bianca@gmail.com>
2019-06-04 17:30:46 +08:00

28 lines
614 B
JavaScript

/*jshint maxlen:10000000 */
import {
LIKED_CONSOLIDATED_TYPE,
REPLIED_TYPE
} from "discourse/widgets/concerns/notification-types";
export default {
"/notifications": {
notifications: [
{
id: 123,
notification_type: REPLIED_TYPE,
read: false,
post_number: 2,
topic_id: 1234,
slug: "a-slug",
data: { topic_title: "some title", display_username: "velesin" }
},
{
id: 456,
notification_type: LIKED_CONSOLIDATED_TYPE,
read: false,
data: { display_username: "aquaman", count: "5" }
}
]
}
};