mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 08:47:43 +00:00
chore(misc): normalize logs (#242)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user