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

mozilla / blurts-server / 34cde2c5-46cb-4312-850d-fcea45fa1c76

pending completion
34cde2c5-46cb-4312-850d-fcea45fa1c76

Pull #2959

circleci

Vincent
fixup! Pretend HTMLElement.shadowRoot is always set
Pull Request #2959: Add type checking for a couple of files

282 of 1619 branches covered (17.42%)

Branch coverage included in aggregate %.

31 of 31 new or added lines in 6 files covered. (100.0%)

959 of 4333 relevant lines covered (22.13%)

3.69 hits per line

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

0.0
/src/views/partials/unsubscribe.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import { getMessage } from '../../utils/fluent.js'
6

7
/**
8
 * @typedef {object} PartialData
9
 * @property {string} csrfToken
10
 */
11

12
/**
13
 * @param {PartialData} data
14
 * @returns string
15
 */
16
const unsubscribe = data => `
×
17
  <section class="unsubscribe">
18
    <h1>${getMessage('unsub-headline')}</h1>
19
    <p>${getMessage('unsub-blurb')}</p>
20
    <button
21
      class='primary js-unsubscribe-button'
22
      data-csrf-token='${data.csrfToken}'
23
    >
24
      ${getMessage('unsub-button')}
25
    </button>
26
  </section>
27
`
28

29
const unsubscribeMonthly = () => `
×
30
  <section class="unsubscribe">
31
    <h1>${getMessage('unsub-headline')}</h1>
32
    <p>${getMessage('changes-saved')}</p>
33
  </section>
34
`
35

36
export {
37
  unsubscribe,
38
  unsubscribeMonthly
39
}
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

© 2025 Coveralls, Inc