Skip to content

Commit

Permalink
test: add TS cases for sanitizePath and buildParams options
Browse files Browse the repository at this point in the history
  • Loading branch information
sherwinski authored and sherwinski committed Jan 13, 2023
1 parent a68791b commit f917451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ params = {};
expectType<string>(client.buildURL('foo/bar/baz', params, buildURLOptions));

expectType<string>(client._sanitizePath(path));
expectType<string>(client._sanitizePath(path, { encode: false }));
expectType<string>(client._sanitizePath(path, { disablePathEncoding: true, encoder: (path) => path }));

expectType<string>(client._buildParams(params));
expectType<string>(client._buildParams(params, { encoder: (value, key) => value }));

expectType<string>(client._signParams(path, params));

Expand Down

0 comments on commit f917451

Please sign in to comment.