Integrate supplied institutions by location category and type through investor dossiers
This commit is contained in:
@@ -26,7 +26,7 @@ function load(file, mocks = {}) {
|
||||
(name) =>
|
||||
name in mocks
|
||||
? mocks[name]
|
||||
: name === '@/pages/investment/shared'
|
||||
: name === '@/components/funding-classification' ? load('components/funding-classification.tsx',mocks) : name === '@/pages/investment/shared'
|
||||
? { card: 'card', input: 'input', button: 'button' }
|
||||
: require(name),
|
||||
module,
|
||||
@@ -189,6 +189,7 @@ test('actual dossier continuation freezes a lost response retry and retains doss
|
||||
let tree = render();
|
||||
const selects = flatten(tree).filter((n) => n.type === 'select');
|
||||
selects[1].props.onChange({ target: { value: product.code } });
|
||||
selects[2].props.onChange({ target: { value: 'qa-branch' } });
|
||||
flatten(tree)
|
||||
.find((n) => n.type === 'input' && n.props.type === 'checkbox')
|
||||
.props.onChange({ target: { checked: true } });
|
||||
@@ -214,6 +215,7 @@ test('actual dossier continuation freezes a lost response retry and retains doss
|
||||
assert.equal(calls[0].body.context, 'qa-dossier');
|
||||
assert.equal(calls[0].body.opportunity, 'qa-opportunity');
|
||||
assert.equal(calls[0].body.product, product.code);
|
||||
assert.equal(calls[0].body.location_id, 'qa-branch');
|
||||
tree = render();
|
||||
assert.equal(
|
||||
flatten(tree).find((n) => n.type === 'a').props.href,
|
||||
|
||||
Reference in New Issue
Block a user