File tree Expand file tree Collapse file tree 5 files changed +46
-84
lines changed Expand file tree Collapse file tree 5 files changed +46
-84
lines changed Original file line number Diff line number Diff line change 28
28
29
29
<script >
30
30
export default {
31
- name: ' Switch ' ,
31
+ name: ' COldSwitch ' ,
32
32
model: {
33
33
prop: ' modelChecked' ,
34
34
event : ' change'
Original file line number Diff line number Diff line change 1
- import Switch from './Switch '
1
+ import COldSwitch from './COldSwitch '
2
2
import CSwitch from './CSwitch'
3
3
4
4
export {
5
- Switch ,
5
+ COldSwitch ,
6
6
CSwitch
7
7
}
Original file line number Diff line number Diff line change 1
1
import { mount } from "@vue/test-utils" ;
2
- import Component from "../Switch " ;
2
+ import Component from "../COldSwitch " ;
3
3
4
- const ComponentName = 'Switch '
4
+ const ComponentName = 'COldSwitch '
5
5
const defaultWrapper = mount ( Component )
6
6
const customWrapper = mount ( Component , {
7
7
propsData : {
Original file line number Diff line number Diff line change
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
+ ` ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments