salix/back/models/specs/company.spec.js

10 lines
294 B
JavaScript
Raw Permalink Normal View History

2023-01-24 08:04:43 +00:00
const {models} = require('vn-loopback/server/server');
2019-02-18 13:40:50 +00:00
describe('loopback model Company', () => {
it('should check that the company FTH doesnt exists', async() => {
2023-01-24 08:04:43 +00:00
let result = await models.Company.findOne({where: {code: 'FTH'}});
2019-02-18 13:40:50 +00:00
expect(result).toBeFalsy();
});
});