Skip to content

Commit 4727e80

Browse files
authored
Merge pull request #498 from salesforcecli/sm/nuts-cleanup
test: remove deprecated querystring
2 parents 68c15bf + 68a2761 commit 4727e80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/nut/commands/force/org/org.nut.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
import { join } from 'path';
9-
import * as querystring from 'querystring';
109
import { expect, config } from 'chai';
1110
import { TestSession } from '@salesforce/cli-plugins-testkit';
1211
import { execCmd } from '@salesforce/cli-plugins-testkit';
@@ -184,7 +183,7 @@ describe('Org Command NUT', () => {
184183
expect(result).to.include({ orgId: aliasUserOrgId, username: aliasedUsername });
185184
expect(result)
186185
.to.property('url')
187-
.to.include(`retURL=${querystring.escape('foo/bar/baz')}`);
186+
.to.include(`retURL=${encodeURIComponent(decodeURIComponent('foo/bar/baz'))}`);
188187
});
189188
});
190189
});

0 commit comments

Comments
 (0)