Skip to content

Commit

Permalink
fix: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-mario committed Mar 10, 2019
1 parent a74695e commit 20398ef
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
18 changes: 9 additions & 9 deletions dist/facade.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import CountItems from "./functions/countItems";
import CreateItem from "./functions/createItem";
import DeleteItem from "./functions/deleteItem";
import DeleteItems from "./functions/deleteItems";
import GetItem from "./functions/getItem";
import GetItems from "./functions/getItems";
import ReplaceItem from "./functions/replaceItem";
import UpdateItem from "./functions/updateItem";
import CountItems from "./functions/CountItems";
import CreateItem from "./functions/CreateItem";
import DeleteItem from "./functions/DeleteItem";
import DeleteItems from "./functions/DeleteItems";
import GetItem from "./functions/GetItem";
import GetItems from "./functions/GetItems";
import ReplaceItem from "./functions/ReplaceItem";
import UpdateItem from "./functions/UpdateItem";
import Item from "./interfaces/Item";
export default interface Facade<I extends Item> {
readonly countItems: CountItems<I>;
readonly createItem: CreateItem<I>;
readonly getItem: GetItem<I>;
readonly getItems: GetItems<I>;
readonly deleteItem: DeleteItem<I>;
readonly deleteItems: DeleteItems<I>;
readonly updateItem: UpdateItem<I>;
readonly replaceItem: ReplaceItem<I>;
readonly countItems: CountItems<I>;
}
8 changes: 4 additions & 4 deletions dist/functions/getItems/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/functions/getItems/test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/interfaces/filter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface ComparisonFilter<Value> {
readonly $lte?: Value;
readonly $ne?: Value;
readonly $nin?: Value[];
readonly $not?: ComparisonFilter<Value>;
readonly $search?: Value;
}
export declare type ItemFilter<I extends Item> = {
Expand Down
8 changes: 4 additions & 4 deletions src/functions/GetItems/test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Options from "../../interfaces/Options";
import { TestItem } from "../utils/testItem";
// import runFilterTests from "./subtests/runFilterTests";
import runFilterTests from "./subtests/runFilterTests";
import runPaginationTests from "./subtests/runPaginationTests";
// import runSortTests from "./subtests/runSortTests";
import runSortTests from "./subtests/runSortTests";

export default (options: Options<TestItem>) => {
describe("getItems", () => {
// runFilterTests(options);
runFilterTests(options);
runPaginationTests(options);
// runSortTests(options);
runSortTests(options);
});
};

0 comments on commit 20398ef

Please sign in to comment.