Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -26,6 +26,23 @@ function load(file, mocks = {}) {
|
||||
return module.exports;
|
||||
}
|
||||
const lib = load('../../resources/js/lib/company-preparation.ts');
|
||||
test('historical delivery wording is presented professionally without changing the stored notice or legal limits', () => {
|
||||
const legal =
|
||||
' Esta ficha prepara dados para revisão; não é uma minuta contratual, assinatura, registo ou licença.';
|
||||
const stored =
|
||||
'Os sete exemplares referidos no complemento ainda não foram fornecidos.' +
|
||||
legal;
|
||||
assert.equal(
|
||||
lib.companyPreparationNotice(stored),
|
||||
'Os modelos contratuais não estão disponíveis nesta preparação.' +
|
||||
legal,
|
||||
);
|
||||
assert.match(stored, /sete exemplares/);
|
||||
assert.equal(
|
||||
lib.companyPreparationNotice('Outro aviso específico.'),
|
||||
'Outro aviso específico.',
|
||||
);
|
||||
});
|
||||
const party = {
|
||||
id: 'SYNTHETIC-party',
|
||||
name: '<SYNTHETIC>',
|
||||
@@ -148,6 +165,7 @@ function harness() {
|
||||
router: { visit: (...args) => visits.push(args) },
|
||||
},
|
||||
'./shared': { Frame: 'main', card: '', input: '', button: '' },
|
||||
'@/components/currency-select': { default: () => null },
|
||||
'@/lib/company-preparation': lib,
|
||||
'@/lib/operation-key': {
|
||||
createOperationKey: () => 'SYNTHETIC-operation',
|
||||
|
||||
Reference in New Issue
Block a user