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
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
7cb4dfe16a
commit
f4aee047ff
|
@ -9,8 +9,8 @@ describe('FormModel', () => {
|
||||||
|
|
||||||
describe('modelValue', () => {
|
describe('modelValue', () => {
|
||||||
it('should use the provided model', () => {
|
it('should use the provided model', () => {
|
||||||
const { vm } = mount({ propsData: { model: 'mockModel' } });
|
const { vm } = mount({ propsData: { model } });
|
||||||
expect(vm.modelValue).toBe('mockModel');
|
expect(vm.modelValue).toBe(model);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should use the route meta title when model is not provided', () => {
|
it('should use the route meta title when model is not provided', () => {
|
||||||
|
|
Loading…
Reference in New Issue