chore: move notification test, other refactoring (#111)

This commit is contained in:
Jef LeCompte
2020-09-20 13:18:32 -04:00
committed by GitHub
parent a3fc07daf0
commit 2a1f15041e
13 changed files with 40 additions and 32 deletions
+16
View File
@@ -0,0 +1,16 @@
import {Link} from '../store/model';
import {sendNotification} from '../notification';
const link: Link = {
brand: 'brand',
cartUrl: 'http://example.com/',
captchaLabels: ['captcha'],
model: 'model',
oosLabels: ['out of stock'],
url: 'http://example.com/'
};
/**
* Send test email.
*/
sendNotification(link.cartUrl ?? link.url, link);