fix
This commit is contained in:
parent
7082d0a210
commit
273e090d3f
|
@ -18,12 +18,16 @@ import * as assert from 'assert';
|
||||||
import * as lolex from 'lolex';
|
import * as lolex from 'lolex';
|
||||||
import { async } from './utils';
|
import { async } from './utils';
|
||||||
import { initDb } from '../src/db/postgre';
|
import { initDb } from '../src/db/postgre';
|
||||||
|
import TestChart from '../src/services/chart/charts/classes/test';
|
||||||
|
import TestGroupedChart from '../src/services/chart/charts/classes/test-grouped';
|
||||||
|
import TestUniqueChart from '../src/services/chart/charts/classes/test-unique';
|
||||||
|
import { Connection } from 'typeorm';
|
||||||
|
|
||||||
describe('Chart', () => {
|
describe('Chart', () => {
|
||||||
let testChart: any;
|
let testChart: any;
|
||||||
let testGroupedChart: any;
|
let testGroupedChart: any;
|
||||||
let testUniqueChart: any;
|
let testUniqueChart: any;
|
||||||
let connection: any;
|
let connection: Connection;
|
||||||
let clock: lolex.InstalledClock<lolex.Clock>;
|
let clock: lolex.InstalledClock<lolex.Clock>;
|
||||||
|
|
||||||
before(done => {
|
before(done => {
|
||||||
|
@ -33,14 +37,13 @@ describe('Chart', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
after(done => {
|
||||||
|
connection.close().then(done);
|
||||||
|
});
|
||||||
|
|
||||||
beforeEach(done => {
|
beforeEach(done => {
|
||||||
const TestChart = require('../built/services/chart/charts/classes/test').default;
|
|
||||||
testChart = new TestChart();
|
testChart = new TestChart();
|
||||||
|
|
||||||
const TestGroupedChart = require('../built/services/chart/charts/classes/test-grouped').default;
|
|
||||||
testGroupedChart = new TestGroupedChart();
|
testGroupedChart = new TestGroupedChart();
|
||||||
|
|
||||||
const TestUniqueChart = require('../built/services/chart/charts/classes/test-unique').default;
|
|
||||||
testUniqueChart = new TestUniqueChart();
|
testUniqueChart = new TestUniqueChart();
|
||||||
|
|
||||||
clock = lolex.install({
|
clock = lolex.install({
|
||||||
|
|
Loading…
Reference in New Issue