Skip to content

Commit

Permalink
test(input): update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Jul 10, 2024
1 parent 2dd86cd commit 96b877b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ exports[`test input type 3`] = `
<div class="var-field-decorator__controller" style="cursor: text; overflow: visible; --field-decorator-middle-offset-left: 0px; --field-decorator-middle-offset-width: 0px; --field-decorator-middle-offset-height: 0px;">
<div class="var-field-decorator__icon"></div>
<div class="var-field-decorator__middle">
<!--v-if--><input class="var-input__input" autocomplete="new-password" id="var-input-mock-id" type="text" inputmode="numeric">
<!--v-if--><input class="var-input__input" autocomplete="new-password" id="var-input-mock-id" type="text" inputmode="decimal">
</div>
<!--v-if-->
<div class="var-field-decorator__icon">
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/input/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test('test input type', () => {
switch (type) {
case 'number': {
expect(wrapper.find('input').attributes('type')).toBe('text')
expect(wrapper.find('input').attributes('inputmode')).toBe('numeric')
expect(wrapper.find('input').attributes('inputmode')).toBe('decimal')
break
}

Expand Down

0 comments on commit 96b877b

Please sign in to comment.