FIx types

This commit is contained in:
Acid Chicken (硫酸鶏) 2019-07-01 23:36:07 +09:00
parent f514c1c200
commit 609caf2c4b
No known key found for this signature in database
GPG Key ID: 5388F56C75B677A1

View File

@ -16,9 +16,11 @@ process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import * as childProcess from 'child_process';
import { Connection } from 'typeorm';
import { async, signup, request, post, uploadFile } from './utils';
import { Note } from '../built/models/entities/note';
const initDb = require('../built/db/postgre.js').initDb;
const { Note }: { Note: new () => unknown } = require('../built/models/entities/note');
// 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', () => {
let p: childProcess.ChildProcess;