FIx types
This commit is contained in:
parent
f514c1c200
commit
609caf2c4b
1 changed files with 4 additions and 2 deletions
|
@ -16,9 +16,11 @@ process.env.NODE_ENV = 'test';
|
||||||
|
|
||||||
import * as assert from 'assert';
|
import * as assert from 'assert';
|
||||||
import * as childProcess from 'child_process';
|
import * as childProcess from 'child_process';
|
||||||
|
import { Connection } from 'typeorm';
|
||||||
import { async, signup, request, post, uploadFile } from './utils';
|
import { async, signup, request, post, uploadFile } from './utils';
|
||||||
import { Note } from '../built/models/entities/note';
|
const { Note }: { Note: new () => unknown } = require('../built/models/entities/note');
|
||||||
const initDb = require('../built/db/postgre.js').initDb;
|
// tslint:disable-next-line: bool-param-default
|
||||||
|
const { initDb }: { initDb(justBorrow?: boolean, sync?: boolean, log?: boolean): Promise<Connection> } = require('../built/db/postgre.js');
|
||||||
|
|
||||||
describe('Note', () => {
|
describe('Note', () => {
|
||||||
let p: childProcess.ChildProcess;
|
let p: childProcess.ChildProcess;
|
||||||
|
|
Loading…
Reference in a new issue