Skip to content

Commit

Permalink
fix(search): 更新快照. (Tencent#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
byq1213 committed Dec 27, 2023
1 parent 0151977 commit 4b0ed5f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 28 deletions.
13 changes: 13 additions & 0 deletions src/fab/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,16 @@ exports[`Fab Fab base demo works fine 1`] = `
/>
</base>
`;

exports[`Fab Fab draggable demo works fine 1`] = `
<draggable>
<t-fab
ariaLabel="增加"
draggable="{{true}}"
icon="gesture-press"
text="拖我"
bind:click="handleClick"
bind:move="handleMove"
/>
</draggable>
`;
2 changes: 1 addition & 1 deletion src/fab/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = ['advance', 'base'];
const mapper = ['advance', 'base', 'draggable'];

describe('Fab', () => {
mapper.forEach((demoName) => {
Expand Down
16 changes: 1 addition & 15 deletions src/input/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = [
'align',
'banner',
'base',
'bordered',
'custom',
'label',
'layout',
'maxlength',
'prefix',
'size',
'special',
'status',
'suffix',
];
const mapper = ['align', 'banner', 'base', 'bordered', 'custom', 'label', 'layout', 'maxlength', 'prefix', 'size', 'special', 'status', 'suffix'];

describe('Input', () => {
mapper.forEach((demoName) => {
Expand Down
13 changes: 1 addition & 12 deletions src/rate/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = [
'action',
'base',
'color',
'count',
'custom',
'custom-prefix',
'show-text',
'size',
'special',
'un-filled',
];
const mapper = ['action', 'base', 'color', 'count', 'custom', 'custom-prefix', 'show-text', 'size', 'special', 'un-filled'];

describe('Rate', () => {
mapper.forEach((demoName) => {
Expand Down
1 change: 1 addition & 0 deletions src/search/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ exports[`search Props :base 1`] = `
</wx-view>
</wx-view>
<wx-view
ariaRole="listbox"
class="t-search__result-list"
/>
</t-search>
Expand Down

0 comments on commit 4b0ed5f

Please sign in to comment.