⬆️ bump dependencies
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user