⬆️ bump dependencies

This commit is contained in:
platane
2021-10-04 09:41:55 +02:00
parent 6823a283fd
commit aa6a4782ee
9 changed files with 1113 additions and 1966 deletions

View File

@@ -1,13 +1,15 @@
import { formatParams } from "../formatParams";
[
const params = [
//
[{}, ""],
[{ year: 2017 }, "from=2017-01-01&to=2017-12-31"],
[{ from: new Date("2017-12-03") }, "from=2017-12-03"],
[{ from: "2017-12-03" }, "from=2017-12-03"],
[{ to: "2017-12-03" }, "to=2017-12-03"],
].forEach(([params, res]) =>
] as const;
params.forEach(([params, res]) =>
it(`should format ${JSON.stringify(params)}`, () => {
expect(formatParams(params)).toBe(res);
})