This commit is contained in:
Zeeshaun
2026-03-17 11:09:46 -05:00
parent bd1a9744ad
commit 6e7edcfe1b
332 changed files with 64174 additions and 0 deletions
@@ -0,0 +1,16 @@
import UrlFormatting from "./UrlFormatting";
describe('URL Formatting Class', () => {
it ('Replace URL Params', () => {
const replacedURL = UrlFormatting.ReplaceURLParams(
"http://www.test.com/foo/{fooId}/bar/{barId}/bool/{boolId}",
{ key: 'fooId', value: 1 },
{ key: 'barId', value: 'string' },
{ key: 'boolId', value: false },
);
expect(replacedURL).toEqual("http://www.test.com/foo/1/bar/string/bool/false");
})
});