fix switch test

pull/5841/head
Leopoldthecoder 2017-07-10 19:19:39 +08:00 committed by 杨奕
parent 3bc4333578
commit 0c2248b013
1 changed files with 1 additions and 1 deletions

View File

@ -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');
});