Skip to content

Commit fd62620

Browse files
committed
chore: rename Switch to COldSwitch.
1 parent a3de754 commit fd62620

File tree

5 files changed

+46
-84
lines changed

5 files changed

+46
-84
lines changed

src/components/Switch/Switch.vue renamed to src/components/Switch/COldSwitch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<script>
3030
export default {
31-
name:'Switch',
31+
name:'COldSwitch',
3232
model: {
3333
prop: 'modelChecked',
3434
event: 'change'

src/components/Switch/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import Switch from './Switch'
1+
import COldSwitch from './COldSwitch'
22
import CSwitch from './CSwitch'
33

44
export {
5-
Switch,
5+
COldSwitch,
66
CSwitch
77
}

src/components/Switch/tests/Switch.spec.js renamed to src/components/Switch/tests/COldSwitch.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mount } from "@vue/test-utils";
2-
import Component from "../Switch";
2+
import Component from "../COldSwitch";
33

4-
const ComponentName = 'Switch'
4+
const ComponentName = 'COldSwitch'
55
const defaultWrapper = mount(Component)
66
const customWrapper = mount(Component, {
77
propsData: {
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`COldSwitch .vue matches custom props snapshot 1`] = `
4+
<label
5+
class="switch switch-lg switch-info form-check-label"
6+
>
7+
<input
8+
class="switch-input form-check-input"
9+
disabled="disabled"
10+
false-value="uncheckedValue"
11+
id="switch-id-3"
12+
required="required"
13+
true-value="value"
14+
type="checkbox"
15+
value="false"
16+
/>
17+
18+
<span
19+
class="switch-slider"
20+
/>
21+
</label>
22+
`;
23+
24+
exports[`COldSwitch .vue matches default props snapshot and render correctly 1`] = `
25+
<label
26+
class="switch switch-secondary form-check-label"
27+
>
28+
<input
29+
class="switch-input form-check-input"
30+
false-value="uncheckedValue"
31+
id="switch-id-1"
32+
true-value="value"
33+
type="checkbox"
34+
value="true"
35+
/>
36+
37+
<span
38+
class="switch-slider"
39+
/>
40+
</label>
41+
`;

src/components/Switch/tests/__snapshots__/Switch.spec.js.snap

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)