-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update test #80
update test #80
Conversation
export async function mockGiteeFindById(id: number) { | ||
mock.onGet(`https://gitee.com/api/v5/repos/${GITEE_OWNER}/${GITEE_REPO}/issues/comments/${id}`).reply(async (config) => { | ||
export async function mockGiteeFindById() { | ||
mock.onGet(new RegExp(`https://gitee.com/api/v5/repos/${GITEE_OWNER}/${GITEE_REPO}/issues/comments/\\d+`)).reply(async (config) => { |
Check failure
Code scanning / CodeQL
Regular expression injection High test
environment variable
This regular expression is constructed from a
environment variable
} | ||
|
||
export async function mockGiteeUpdateById() { | ||
mock.onPatch(new RegExp(`https://gitee.com/api/v5/repos/${GITEE_OWNER}/${GITEE_REPO}/issues/comments/\\d+`)).reply(async (config) => { |
Check failure
Code scanning / CodeQL
Regular expression injection High test
environment variable
This regular expression is constructed from a
environment variable
} | ||
|
||
export async function mockGiteeDeleteById() { | ||
mock.onDelete(new RegExp(`https://gitee.com/api/v5/repos/${GITEE_OWNER}/${GITEE_REPO}/issues/comments/\\d+`)).reply(async (config) => { |
Check failure
Code scanning / CodeQL
Regular expression injection High test
environment variable
This regular expression is constructed from a
environment variable
} | ||
|
||
export async function mockGiteeDetail() { | ||
mock.onGet(new RegExp(`https://gitee.com/api/v5/repos/${GITEE_OWNER}/${GITEE_REPO}/issues/${GITEE_NUMBER}`)).reply(async (config) => { |
Check failure
Code scanning / CodeQL
Regular expression injection High test
environment variable
This regular expression is constructed from a
environment variable
This regular expression is constructed from a
No description provided.