Skip to content

Update escaping rules in io's rmRF#828

Merged
thboop merged 13 commits intomainfrom
thboop/HandleEscaping
Jun 7, 2021
Merged

Update escaping rules in io's rmRF#828
thboop merged 13 commits intomainfrom
thboop/HandleEscaping

Conversation

@thboop
Copy link
Copy Markdown
Collaborator

@thboop thboop commented Jun 4, 2021

No description provided.

@thboop thboop requested a review from a team as a code owner June 4, 2021 02:35
@thboop thboop requested a review from ericsciple June 4, 2021 03:17
Comment thread packages/io/__tests__/io.test.ts Outdated
Comment thread packages/io/__tests__/io.test.ts Outdated
Comment thread packages/io/src/io-util.ts Outdated
Comment thread packages/io/src/io.ts Outdated
process.env['test'] = oldEnv
})

it('Should throw for invalid characters', async () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not at all necessary, but you can parameterize tests with

it.each([`*`, `"`, `<`, `>` `|`, async (invalidChar) => { })

to avoid duplication

@thboop thboop merged commit c9af6bb into main Jun 7, 2021
@thboop thboop deleted the thboop/HandleEscaping branch June 7, 2021 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants