Generate guid to replace encodeURIComponent
Removing encodeURIComponent(accountId) in favour of generating a guid
This commit is contained in:
parent
aeda2a143e
commit
d4b7ac9c98
|
@ -15,9 +15,8 @@ describe("Account Internal Operations", () => {
|
||||||
|
|
||||||
it("performs account deletion by ID", async () => {
|
it("performs account deletion by ID", async () => {
|
||||||
// Deleting by unknown id doesn't work
|
// Deleting by unknown id doesn't work
|
||||||
const accountId = generator.string()
|
const accountId = generator.guid()
|
||||||
const encodedAccountId = encodeURIComponent(accountId)
|
await config.api.accounts.delete(accountId, { status: 404 })
|
||||||
await config.api.accounts.delete(encodedAccountId, { status: 404 })
|
|
||||||
|
|
||||||
// Create new account
|
// Create new account
|
||||||
const [_, account] = await config.api.accounts.create({
|
const [_, account] = await config.api.accounts.create({
|
||||||
|
|
Loading…
Reference in New Issue