Skip to content

Commit

Permalink
test(trendarrow): test error
Browse files Browse the repository at this point in the history
  • Loading branch information
szg2008 committed Sep 22, 2022
1 parent 90cd3ba commit 2997cf3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render triangle size when set iconsize 1`] = `
"<view class=\\"nut-trendarrow\\"><span class=\\"nut-trendarrow-icon-before nut-trendarrow-rate\\" style=\\"color: rgb(100, 181, 120);\\">10.00%</span><i class=\\"nutui-iconfont nut-icon nut-icon-triangle-down\\" style=\\"color: rgb(100, 181, 120); font-size: 14px; width: 14px; height: 14px;\\" src=\\"\\"></i>
<!--v-if-->
</view>"
`;
4 changes: 2 additions & 2 deletions src/packages/__VUE/trendarrow/__tests__/trendarrow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ test('should render left icon when arrowLeft', async () => {
arrowLeft: true
}
});
expect(wrapper.findAll('.nut-trendarrow-icon-before').length).toBe(1);
expect(wrapper.findAll('.nut-trendarrow-icon-after').length).toBe(0);
expect(wrapper.findAll('.nut-trendarrow-icon-before').length).toBe(0);
expect(wrapper.findAll('.nut-trendarrow-icon-after').length).toBe(1);
});
test('should render sync text color when syncTextColor is true', async () => {
const wrapper = mount(Trendarrow, {
Expand Down

0 comments on commit 2997cf3

Please sign in to comment.