refactor: refs #7074 move dms constant to global scope
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
JOSE ANTONIO TUBAU RODRIGUEZ 2024-12-18 08:07:44 +01:00
parent 17c776138e
commit 8ab10dda1b
1 changed files with 4 additions and 10 deletions

View File

@ -4,6 +4,10 @@ import { vi, afterEach, beforeAll, describe, expect, it } from 'vitest';
describe('VnDmsList', () => { describe('VnDmsList', () => {
let vm; let vm;
const dms = {
userFk: 1,
name: 'DMS 1'
};
beforeAll(() => { beforeAll(() => {
vi.spyOn(axios, 'get').mockResolvedValue({ data: [] }); vi.spyOn(axios, 'get').mockResolvedValue({ data: [] });
@ -63,11 +67,6 @@ describe('VnDmsList', () => {
}); });
describe('parseDms()', () => { describe('parseDms()', () => {
const dms = {
userFk: 1,
name: 'DMS 1'
};
const resultDms = { ...dms, userId:1}; const resultDms = { ...dms, userId:1};
it('Should add properties that end with "Fk" by changing the suffix to "Id"', () => { it('Should add properties that end with "Fk" by changing the suffix to "Id"', () => {
@ -77,11 +76,6 @@ describe('VnDmsList', () => {
}); });
describe('showFormDialog()', () => { describe('showFormDialog()', () => {
const dms = {
userFk: 1,
name: 'DMS 1'
};
const resultDms = { ...dms, userId:1}; const resultDms = { ...dms, userId:1};
it('should call fn parseDms() and set show true if dms is defined', () => { it('should call fn parseDms() and set show true if dms is defined', () => {