test: refs #7056 update FormModel.spec.js to use dynamic model value in tests
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-12-23 14:21:36 +01:00
parent 7cb4dfe16a
commit f4aee047ff
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ describe('FormModel', () => {
describe('modelValue', () => {
it('should use the provided model', () => {
const { vm } = mount({ propsData: { model: 'mockModel' } });
expect(vm.modelValue).toBe('mockModel');
const { vm } = mount({ propsData: { model } });
expect(vm.modelValue).toBe(model);
});
it('should use the route meta title when model is not provided', () => {