test(salix): refs #5926 #5926 remove fdescribe

This commit is contained in:
Javier Segarra 2024-06-12 22:29:35 +02:00
parent 23553a3694
commit 517e498edb
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
const axios = require('axios');
const {Docuware} = require('vn-loopback/server/server').models;
fdescribe('Docuware core', () => {
describe('Docuware core', () => {
beforeAll(() => {
process.env.NODE_ENV = 'testing';
spyOn(Docuware, 'hasDeviceReady').and.returnValue(true);
@ -40,7 +40,7 @@ fdescribe('Docuware core', () => {
});
});
fdescribe('getDialog()', () => {
describe('getDialog()', () => {
it('should return dialogId', async() => {
const dialogs = {
data: {
@ -145,7 +145,7 @@ fdescribe('Docuware core', () => {
});
});
fdescribe('getFileCabinet()', () => {
describe('getFileCabinet()', () => {
it('should return fileCabinetId', async() => {
const code = 'deliveryNote';
const docuwareInfo = await Docuware.findOne({
@ -170,7 +170,7 @@ fdescribe('Docuware core', () => {
});
});
fdescribe('get()', () => {
describe('get()', () => {
it('should return data without parse', async() => {
spyOn(Docuware, 'getFileCabinet').and.returnValue((new Promise(resolve => resolve(Math.random()))));
spyOn(Docuware, 'getDialog').and.returnValue((new Promise(resolve => resolve(Math.random()))));
@ -224,7 +224,7 @@ fdescribe('Docuware core', () => {
});
});
fdescribe('getById()', () => {
describe('getById()', () => {
it('should return data', async() => {
spyOn(Docuware, 'getFileCabinet').and.returnValue((new Promise(resolve => resolve(Math.random()))));
spyOn(Docuware, 'getDialog').and.returnValue((new Promise(resolve => resolve(Math.random()))));