Commit 0c2248b0 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

fix switch test

parent 3bc43335
......@@ -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');
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment