mirror of https://github.com/ElemeFE/element
fix switch test
parent
3bc4333578
commit
0c2248b013
|
@ -18,7 +18,7 @@ describe('Switch', () => {
|
|||
});
|
||||
|
||||
const core = vm.$el.querySelector('.el-switch__core');
|
||||
expect(core.style.backgroundColor).to.equal('rgb(0, 255, 0)');
|
||||
expect(core.style.backgroundColor).to.equal('rgb(255, 0, 0)');
|
||||
expect(core.style.width).to.equal('100px');
|
||||
expect(vm.$el.querySelector('.el-switch__label--left').querySelector('span').textContent).to.equal('on');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue