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/app/assets/javascripts/discourse/tests/fixtures/notification-fixtures.js
Robin Ward 23f24bfb51 REFACTOR: Move javascript tests inside discourse app
This is where they should be as far as ember is concerned. Note this is
a huge commit and we should be really careful everything continues to
work properly.
2020-10-02 11:29:36 -04:00

57 lines
1.4 KiB
JavaScript

/*jshint maxlen:10000000 */
import { NOTIFICATION_TYPES } from "./concerns/notification-types";
export default {
"/notifications": {
notifications: [
{
id: 123,
notification_type: NOTIFICATION_TYPES.replied,
read: false,
post_number: 2,
topic_id: 1234,
slug: "a-slug",
data: { topic_title: "some title", display_username: "velesin" },
},
{
id: 456,
notification_type: NOTIFICATION_TYPES.liked_consolidated,
read: false,
data: { display_username: "aquaman", count: "5" },
},
{
id: 789,
notification_type: NOTIFICATION_TYPES.group_message_summary,
read: false,
post_number: null,
topic_id: null,
slug: null,
data: {
group_id: 41,
group_name: "test",
inbox_count: 5,
username: "test2",
},
},
{
id: 1234,
notification_type: NOTIFICATION_TYPES.invitee_accepted,
read: false,
post_number: null,
topic_id: null,
slug: null,
data: { display_username: "test1" },
},
{
id: 5678,
notification_type: NOTIFICATION_TYPES.membership_request_accepted,
read: false,
post_number: null,
topic_id: null,
slug: null,
data: { group_id: 41, group_name: "test" },
},
],
},
};