Chore: fiatBalancesNotify refactor Chore: removed now-unused code in some files Feat: change column "detail" in database to use jsonb Chore: add notification center background and button Chore: notifications screen scaffolding Fix: change position of notification UI Feat: join backend and frontend Feat: notification icons and machine names Feat: add clear all button, stripe overlay on invalid notification Fix: rework notification styles Feat: use popper to render notifications Feat: make notification center UI Fix: fix css on notification center Fix: fix invalidateNotification Chore: apply PR requested changes Fix: PR fixes Fix: make toggleable body/root styles be handled by react Chore: delete old notifier file Fix: undo variable name changes for cryptobalance notifs
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
const _ = require('lodash/fp')
|
|
|
|
exports.NAME = 'MockSMS'
|
|
|
|
exports.sendMessage = function sendMessage (account, rec) {
|
|
console.log('Sending SMS: %j', rec)
|
|
return new Promise((resolve, reject) => {
|
|
if (_.endsWith('666', _.getOr(false, 'sms.toNumber', rec))) {
|
|
reject(new Error(`${exports.NAME} mocked error!`))
|
|
} else {
|
|
setTimeout(resolve, 10)
|
|
}
|
|
})
|
|
}
|