test: align deployment checks with accepted diagnostics and public presentation
tests / ci (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -88,18 +88,32 @@ test('D1: one startup diagnostic across real local and report components; standa
|
||||
),
|
||||
);
|
||||
assert.ok(error.includes('caixa requerida'));
|
||||
assert.equal(render().split(error).length - 1, 1);
|
||||
assert.equal(
|
||||
render()
|
||||
.replace(/ data-correction-message="[^"]*"/g, '')
|
||||
.replace(/ data-correction-message="[^"]*"/g, '')
|
||||
.split(error).length - 1,
|
||||
1,
|
||||
);
|
||||
assert.equal(
|
||||
renderToStaticMarkup(
|
||||
React.createElement(StartupAssetRequirements, {
|
||||
plan,
|
||||
onChange() {},
|
||||
}),
|
||||
).split(error).length - 1,
|
||||
)
|
||||
.replace(/ data-correction-message="[^"]*"/g, '')
|
||||
.split(error).length - 1,
|
||||
1,
|
||||
);
|
||||
plan.reportAssumptions.startupExpenses = 'invalid';
|
||||
assert.equal(render().split(error).length - 1, 1);
|
||||
assert.equal(
|
||||
render()
|
||||
.replace(/ data-correction-message="[^"]*"/g, '')
|
||||
.replace(/ data-correction-message="[^"]*"/g, '')
|
||||
.split(error).length - 1,
|
||||
1,
|
||||
);
|
||||
plan.reportSource = 'annual_example';
|
||||
assert.equal(presentation.forecastErrorShownInReport(plan, error), false);
|
||||
plan.startupAssetRequirements.cashRequired = '0';
|
||||
|
||||
Reference in New Issue
Block a user