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
2 parents 16e34f3 + 6d27e7d commit 1010afb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/request_util_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe('RequestUtil', function () {
url: 'https://example.com:8080/api/data?foo=bar',
params: {
requestId: '12345',
// eslint-disable-next-line camelcase
request_guid: 'abcde',
warehouse: 'test_warehouse',
databaseName: 'test_db',
Expand Down Expand Up @@ -71,6 +72,7 @@ describe('RequestUtil', function () {
method: 'post',
url: 'https://api.example.com/action?query=value',
params: {
// eslint-disable-next-line camelcase
request_guid: 'xyz123',
warehouse: 'wh1'
}
Expand Down Expand Up @@ -136,7 +138,6 @@ describe('RequestUtil', function () {

assert.ok(result.includes('baseUrl=https://something.com'), 'Should have baseUrl');
assert.ok(result.includes('path=/path'), 'Should have path');
// token not present
assert.ok(!result.includes('token is'), 'Should not indicate token presence');
});

Expand Down

0 comments on commit 1010afb

Please sign in to comment.