[Improvement] Switch: add test cases (#1202)

This commit is contained in:
neverland
2018-05-30 20:35:30 +08:00
committed by GitHub
parent 06056dc226
commit 49701851f7
5 changed files with 143 additions and 68 deletions

View File

@@ -46,7 +46,7 @@ test('checkbox group', () => {
const wrapper = mount({
template: `
<checkbox-group v-model="result" :max="2">
<checkbox v-for="item in list" :key="item" :name="item" :disabled="item === 'd'"></checkbox>
<checkbox v-for="item in list" :key="item" :name="item"></checkbox>
</checkbox-group>
`,
components: {
@@ -56,7 +56,7 @@ test('checkbox group', () => {
data() {
return {
result: [],
list: ['a', 'b', 'c', 'd']
list: ['a', 'b', 'c']
};
}
});