data base test refactor and fix with app boot
This commit is contained in:
parent
fb4a4cd3de
commit
7586024422
|
@ -9,7 +9,9 @@ let verbose = false;
|
|||
if (process.argv[2] === '--v')
|
||||
verbose = true;
|
||||
|
||||
loopbackApp = `vn-loopback/server/server`;
|
||||
let app = require(`vn-loopback/server/server`);
|
||||
app.boot();
|
||||
loopbackApp = 'vn-loopback/server/server';
|
||||
|
||||
let Jasmine = require('jasmine');
|
||||
let jasmine = new Jasmine();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const app = require(`${loopbackApp}`);
|
||||
const app = require('vn-loopback/server/server');
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
describe('buyUltimate()', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const app = require(`${loopbackApp}`);
|
||||
const app = require('vn-loopback/server/server');
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
describe('buyUltimateFromInterval()', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const app = require(`${loopbackApp}`);
|
||||
const app = require('vn-loopback/server/server');
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
describe('logAddWithUser()', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const app = require(`${loopbackApp}`);
|
||||
const app = require('vn-loopback/server/server');
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
describe('ticket ticketCalculateClon()', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const app = require(`${loopbackApp}`);
|
||||
const app = require('vn-loopback/server/server');
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
describe('ticketComponentUpdateSale()', () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const app = require(`${loopbackApp}`);
|
||||
const app = require('vn-loopback/server/server');
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
describe('ticket ticketCreateWithUser()', () => {
|
||||
|
|
Loading…
Reference in New Issue