Skip to content

Commit

Permalink
SNOW-1846395-Improve-URL-data-sanitization: Tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fpawlowski committed Dec 8, 2024
1 parent 7bc95ea commit 16e34f3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/request_util_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,4 @@ describe('RequestUtil', function () {
assert.strictEqual(result, '[]', 'Should return empty brackets for invalid URL');
});
});

describe('Default Constants', function () {
it('should have default attributes arrays exported', function () {
assert.ok(Array.isArray(RequestUtil.DEFAULT_ATTRIBUTES_DESCRIBING_REQUEST_WITH_VALUES), 'Should be array');
assert.ok(RequestUtil.DEFAULT_ATTRIBUTES_DESCRIBING_REQUEST_WITH_VALUES.includes('baseUrl'), 'Should include baseUrl');
assert.ok(RequestUtil.DEFAULT_ATTRIBUTES_DESCRIBING_REQUEST_WITH_VALUES.includes('path'), 'Should include path');

assert.ok(Array.isArray(RequestUtil.DEFAULT_ATTRIBUTES_DESCRIBING_REQUEST_WITHOUT_VALUES), 'Should be array');
assert.ok(RequestUtil.DEFAULT_ATTRIBUTES_DESCRIBING_REQUEST_WITHOUT_VALUES.includes(sfParams.paramsNames.SF_TOKEN), 'Should include token attribute');
});
});
});

0 comments on commit 16e34f3

Please sign in to comment.