mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix unit test
This commit is contained in:
1 parent
5faa54c7ca
commit
49ec3c216f
6 files changed
+61
-69
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import 'hydrooj';
|
||||
import 'hydrooj/src/loader';
|
||||
import { connect, dispose } from './db';
|
||||
|
||||
const DOMAIN_ID = 'system';
|
||||
@@ -8,11 +8,11 @@ const UID = 22;
|
||||
const PNAME = 'aaa';
|
||||
|
||||
describe('Model.Problem', () => {
|
||||
let problem: typeof import('hydrooj/src/model/problem');
|
||||
let problem: typeof import('hydrooj/src/model/problem').default;
|
||||
|
||||
beforeAll(async () => {
|
||||
await connect();
|
||||
problem = require('hydrooj/src/model/problem');
|
||||
problem = require('hydrooj/src/model/problem').default;
|
||||
});
|
||||
|
||||
test('add_get', async () => {
|
||||
|
||||
Reference in new issue
Block a user