Skip to content

Commit

Permalink
style: ran pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-conde committed Nov 27, 2023
1 parent 4c8f097 commit 2cf8356
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/filter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const assert = require("assert");
const ripeCommons = require("..");

describe("Filter", function () {
describe("#filterToParams()", function () {
describe("Filter", function() {
describe("#filterToParams()", function() {
it("should be able to build a filter string to filter only for id equal to 2", () => {
const options = {
filter: "id=2",
Expand Down
8 changes: 7 additions & 1 deletion types/filter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export declare function filterToParams(
nameFunc: Record<string, () => unknown>,
filterFields: Record<string, string>,
keywordFields: Record<string, string[]>,
{ imperfectFilterFields, keywords }: {imperfectFilterFields: Record<string, string>, keywords: Record<string, () => unknown>} = {},
{
imperfectFilterFields,
keywords
}: {
imperfectFilterFields: Record<string, string>;
keywords: Record<string, () => unknown>;
} = {},
removeFunc: Record<string, () => boolean>
): FilterParams;

0 comments on commit 2cf8356

Please sign in to comment.