Commit 984a3bf9 authored by 杨奕's avatar 杨奕 Committed by cinwell.li

Alert: improve test (#605)

parent 84adcace
......@@ -7,6 +7,7 @@ describe('Alert', () => {
title: 'test',
showIcon: true
}, true);
expect(vm.$el.querySelector('.el-alert__title').textContent).to.equal('test');
expect(vm.$el.classList.contains('el-alert--info')).to.true;
});
......@@ -26,7 +27,8 @@ describe('Alert', () => {
description: 'Unbowed, Unbent, Unbroken',
showIcon: true
}, true);
expect(vm.$el.querySelector('.el-alert__description')).to.exist;
expect(vm.$el.querySelector('.el-alert__description').textContent)
.to.equal('Unbowed, Unbent, Unbroken');
});
it('close', () => {
......
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