chore(misc): normalize logs (#242)

This commit is contained in:
Jef LeCompte
2020-09-23 14:20:06 -04:00
committed by GitHub
parent 8466f9f398
commit 7c50e2b5aa
21 changed files with 239 additions and 183 deletions
+18 -7
View File
@@ -1,15 +1,26 @@
import {Link} from '../store/model';
import {Link, Store} from '../store/model';
import {sendNotification} from '../notification';
const link: Link = {
brand: 'brand',
cartUrl: 'http://example.com/',
model: 'model',
series: 'debug',
url: 'http://example.com/'
brand: 'test:brand',
cartUrl: 'test:cartUrl',
model: 'test:model',
series: 'test:series',
url: 'test:url'
};
const store: Store = {
labels: {
inStock: {
container: 'test:container',
text: ['test:text']
}
},
links: [link],
name: 'test:name'
};
/**
* Send test email.
*/
sendNotification(link.cartUrl ?? link.url, link);
sendNotification(link, store);