Skip to content

Commit 070055f

Browse files
committed
perf: optimize code
1 parent 3743d8c commit 070055f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/input/__tests__/OTP.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ describe('OTP', () => {
137137

138138
it('support mask prop', async () => {
139139
const onChange = jest.fn();
140-
const internalValue = 'search'.split('');
141140
const wrapper = mount(OTP, { props: { mask: '🔒', onChange }, sync: false });
142141

143142
await asyncExpect(async () => {
@@ -149,6 +148,8 @@ describe('OTP', () => {
149148
expect(onChange).toHaveBeenCalledTimes(1);
150149
expect(onChange).toHaveBeenCalledWith('search');
151150
expect(getInputAllText(inputAll)).toBe('🔒🔒🔒🔒🔒🔒');
151+
152+
wrapper.unmount();
152153
});
153154
});
154155
});

0 commit comments

Comments
 (0)