Skip to content

Commit

Permalink
refactor: rollback some changes which are for the testing
Browse files Browse the repository at this point in the history
  • Loading branch information
longyulongyu committed Jan 16, 2024
1 parent 3bbe221 commit 957d507
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/lib/src/components/PayMe/PayMe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Instructions from './Instructions';

class PayMeElement extends QRLoaderContainer {
public static type = 'payme';
private static defaultCountdown = 30; // min
private static defaultCountdown = 10; // min
private static defaultDelay = 2000; // ms

protected static defaultProps = {
Expand Down
11 changes: 0 additions & 11 deletions packages/lib/src/components/WeChat/WeChat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,4 @@ describe('WeChat', () => {
expect(wechat.render()).toBe(null);
});
});

describe('formatProps', () => {
describe('countdownTime', () => {
test('should calculate the time difference if expiresAt is provided', () => {});
test('should return the default countdown time if expiresAt is not provided', () => {});
test('should return the default countdown time if there are errors calculating the time difference', () => {});
});
describe('other props', () => {
test('should return the correct values for other props', () => {});
});
});
});
2 changes: 1 addition & 1 deletion packages/lib/src/components/WeChat/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const countdownTime = 8; // min
export const countdownTime = 15; // min
export const delay = 2000; // ms

export default {
Expand Down

0 comments on commit 957d507

Please sign in to comment.