Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbe8cf9f

Browse files
improve toggle
1 parentaa92d9d commitbe8cf9f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎components/CaToggle/CaToggle.spec.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ describe('CaToggle', () => {
66
constwrapper=shallow(CaToggle);
77
expect(wrapper.isVueInstance()).toBeTruthy();
88
});
9+
10+
test('Mathes snapshot',()=>{
11+
constwrapper=shallow(CaToggle);
12+
expect(wrapper.html()).toMatchSnapshot()
13+
});
914
})
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`CaToggle Mathes snapshot 1`]=`
4+
<divclass="bx--form-item">
5+
<inputid="toggle1"type="checkbox"class="bx--toggle">
6+
<labelfor="toggle1"class="bx--toggle__label"><spanclass="bx--toggle__text--left">Off</span> <spanclass="bx--toggle__appearance"></span> <spanclass="bx--toggle__text--right">On</span></label>
7+
</div>
8+
`;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp