• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / iznik-nuxt3 / 72bc760d-62b3-4d2f-9345-2a398222c69e

22 Oct 2025 08:25AM UTC coverage: 46.073% (+11.5%) from 34.61%
72bc760d-62b3-4d2f-9345-2a398222c69e

push

circleci

edwh
MT: Message with purely numeric subject breaks Pending page.

1787 of 4628 branches covered (38.61%)

Branch coverage included in aggregate %.

4068 of 8080 relevant lines covered (50.35%)

101.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.61
/api/MessageAPI.js
1
import BaseAPI from '@/api/BaseAPI'
2

3
export default class MessageAPI extends BaseAPI {
36✔
4
  fetch(id, logError = true) {
215✔
5
    return this.$getv2('/message/' + id, {}, logError)
215✔
6
  }
7

8
  fetchMT(params, logError = true) {
×
9
    return this.$get('/message', params, logError)
×
10
  }
11

12
  fetchByUser(id, active, logError = true) {
69✔
13
    return this.$getv2(
69✔
14
      '/user/' + id + '/message',
15
      {
16
        active: active ? 'true' : 'false',
69✔
17
      },
18
      logError
19
    )
20
  }
21

22
  inbounds(swlat, swlng, nelat, nelng, groupid, limit) {
23
    return this.$getv2('/message/inbounds', {
18✔
24
      swlat,
25
      swlng,
26
      nelat,
27
      nelng,
28
      groupid,
29
      limit,
30
    })
31
  }
32

33
  search(params) {
34
    return this.$getv2(
2✔
35
      '/message/search/' + encodeURIComponent(params.search),
36
      params
37
    )
38
  }
39

40
  mygroups(gid) {
41
    return this.$getv2('/message/mygroups' + (gid ? '/' + gid : ''))
×
42
  }
43

44
  fetchMessages(params) {
45
    // console.error('MessageAPI fetchMessages', params)
46
    return this.$get('/messages', params)
×
47
  }
48

49
  update(event) {
50
    return this.$post('/message', event)
×
51
  }
52

53
  save(event) {
54
    return this.$patch('/message', event)
4✔
55
  }
56

57
  joinAndPost(id, email, logError = true) {
4✔
58
    return this.$post(
4✔
59
      '/message',
60
      { id, email, action: 'JoinAndPost' },
61
      logError
62
    )
63
  }
64

65
  del(id) {
66
    return this.$del('/message', { id })
×
67
  }
68

69
  put(data) {
70
    return this.$put('/message', data)
4✔
71
  }
72

73
  intend(id, outcome) {
74
    return this.$post('/message', {
×
75
      action: 'OutcomeIntended',
76
      id,
77
      outcome,
78
    })
79
  }
80

81
  view(id) {
82
    return this.$post('/message', {
35✔
83
      action: 'View',
84
      id,
85
    })
86
  }
87

88
  approve(id, groupid, subject = null, stdmsgid = null, body = null) {
×
89
    return this.$post('/message', {
×
90
      action: 'Approve',
91
      id,
92
      groupid,
93
      subject,
94
      stdmsgid,
95
      body,
96
    })
97
  }
98

99
  reply(id, groupid, subject = null, stdmsgid = null, body = null) {
×
100
    return this.$post('/message', {
×
101
      action: 'Reply',
102
      id,
103
      groupid,
104
      subject,
105
      stdmsgid,
106
      body,
107
    })
108
  }
109

110
  reject(id, groupid, subject = null, stdmsgid = null, body = null) {
×
111
    return this.$post('/message', {
×
112
      action: 'Reject',
113
      id,
114
      groupid,
115
      subject,
116
      stdmsgid,
117
      body,
118
    })
119
  }
120

121
  delete(id, groupid, subject = null, stdmsgid = null, body = null) {
×
122
    return this.$post('/message', {
×
123
      action: 'Delete',
124
      id,
125
      groupid,
126
      subject,
127
      stdmsgid,
128
      body,
129
    })
130
  }
131

132
  spam(id, groupid) {
133
    return this.$post('/message', {
×
134
      action: 'Spam',
135
      id,
136
      groupid,
137
    })
138
  }
139

140
  hold(id) {
141
    return this.$post('/message', {
×
142
      action: 'Hold',
143
      id,
144
    })
145
  }
146

147
  release(id) {
148
    return this.$post('/message', {
×
149
      action: 'Release',
150
      id,
151
    })
152
  }
153

154
  approveEdits(id) {
155
    return this.$post('/message', {
×
156
      action: 'ApproveEdits',
157
      id,
158
    })
159
  }
160

161
  revertEdits(id) {
162
    return this.$post('/message', {
×
163
      action: 'RevertEdits',
164
      id,
165
    })
166
  }
167

168
  partnerConsent(id, partner) {
169
    return this.$post('/message', {
×
170
      action: 'PartnerConsent',
171
      id,
172
      partner,
173
    })
174
  }
175

176
  addBy(id, userid, count) {
177
    return this.$post('/message', {
×
178
      action: 'AddBy',
179
      id,
180
      userid,
181
      count,
182
    })
183
  }
184

185
  removeBy(id, userid) {
186
    return this.$post('/message', {
×
187
      action: 'RemoveBy',
188
      id,
189
      userid,
190
    })
191
  }
192

193
  async count(browseView, log) {
194
    return await this.$getv2(
69✔
195
      '/message/count',
196
      {
197
        browseView,
198
      },
199
      log
200
    )
201
  }
202

203
  async markSeen(ids) {
204
    return await this.$post('/messages', {
×
205
      action: 'MarkSeen',
206
      ids,
207
    })
208
  }
209
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc