-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
TypeScript Backend -- 孙雷 #1971
base: master
Are you sure you want to change the base?
TypeScript Backend -- 孙雷 #1971
Conversation
} | ||
|
||
// 长度不够则补'0' | ||
if (res.length < minLength) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
res.padStart
describe('newUrl', () => { | ||
beforeAll(testSetup) | ||
afterAll(testTeardown) | ||
it('should create a new URL', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
重复提交相同的request会怎么样?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不会限制,原因是创建者可能对相同的原始链接,希望有不同的分享渠道
但还是看具体需求,如果需要做成去重的,也是合理的
No description provided.