Skip to content

改良测试用环境 #521

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cyfung1031
Copy link
Contributor

@cyfung1031 cyfung1031 commented Jul 11, 2025

改良前:直接new API
改良後:跟實際一樣需要權限設定

@cyfung1031 cyfung1031 force-pushed the patch_-createTestContext branch from 2cf492d to bfa2712 Compare July 11, 2025 08:21
@CodFrm
Copy link
Member

CodFrm commented Jul 11, 2025

我觉得之前的没问题,这里的测试是针对GM API的,需要权限设定的有在 https://github.com/scriptscat/scriptcat/blob/main/src/app/service/content/exec_script.test.ts 覆盖,另外专门弄一个测试函数来实例化GMApi,不是很符合正常流程,我觉得不太妥

@cyfung1031 cyfung1031 marked this pull request as draft July 11, 2025 08:28
@CodFrm CodFrm force-pushed the main branch 2 times, most recently from dc35ec8 to 26c0569 Compare July 15, 2025 07:13
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.

2 participants