33 lines
1002 B
TypeScript
33 lines
1002 B
TypeScript
import { TestContext } from "../Context";
|
|
import { EntityDict } from "../test-app-domain";
|
|
import { v4 } from 'uuid';
|
|
import assert from 'assert';
|
|
import { generateNewIdAsync } from 'oak-domain/lib/utils/uuid';
|
|
import { describe, it, before, after } from 'mocha';
|
|
import { DbStore } from "../../lib/types/dbStore";
|
|
|
|
import aggr from "./aggr";
|
|
import base from "./base";
|
|
import bool from "./bool";
|
|
import compare from "./compare";
|
|
import complax from "./complax";
|
|
import date from "./date";
|
|
import json from "./json";
|
|
import math from "./math";
|
|
import projection from "./projection";
|
|
import string from "./string";
|
|
import subquery from "./subquery";
|
|
|
|
export const tests = (storeGetter: () => DbStore<EntityDict, TestContext>) => {
|
|
base(storeGetter);
|
|
subquery(storeGetter);
|
|
projection(storeGetter);
|
|
string(storeGetter);
|
|
math(storeGetter);
|
|
date(storeGetter);
|
|
bool(storeGetter);
|
|
compare(storeGetter);
|
|
aggr(storeGetter);
|
|
json(storeGetter);
|
|
complax(storeGetter);
|
|
} |