feat: add signal repository + tests

This commit is contained in:
Adhiraj Singh
2023-03-18 12:25:47 +05:30
parent 2eea17fe9f
commit fe1d0649b5
21 changed files with 500 additions and 206 deletions

View File

@@ -148,7 +148,7 @@ export const toProductNode = (productId: string | undefined, product: ProductCre
if('originCountryCode' in product) {
if(typeof product.originCountryCode === 'undefined') {
attrs.compliance_category = 'COUNTRY_ORIGIN_EXEMPT'
attrs['compliance_category'] = 'COUNTRY_ORIGIN_EXEMPT'
} else {
content.push({
tag: 'compliance_info',
@@ -166,7 +166,7 @@ export const toProductNode = (productId: string | undefined, product: ProductCre
if(typeof product.isHidden !== 'undefined') {
attrs.is_hidden = product.isHidden.toString()
attrs['is_hidden'] = product.isHidden.toString()
}
const node: BinaryNode = {