refactor(modal): replace 'content' with 'description' and update related tests
This commit is contained in:
@@ -15,7 +15,7 @@ import { SimpleModalComponent } from './simple-modal.component';
|
||||
|
||||
describe('SimpleModalComponent', () => {
|
||||
const data: SimpleModalData = {
|
||||
content: 'Este es un mensaje simple.',
|
||||
title: 'Este es un mensaje simple.',
|
||||
buttonLabel: 'Entendido'
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ describe('SimpleModalComponent', () => {
|
||||
|
||||
const element = fixture.nativeElement as HTMLElement;
|
||||
|
||||
expect(element.textContent).toContain(data.content);
|
||||
expect(element.textContent).toContain(data.title);
|
||||
expect(element.textContent).toContain(data.buttonLabel);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user