feat(Progress): add track-color prop (#4789)

This commit is contained in:
neverland
2019-10-20 13:02:30 +08:00
committed by GitHub
parent 4c2cf8e2cb
commit 95598e8842
4 changed files with 19 additions and 8 deletions
+10
View File
@@ -16,3 +16,13 @@ test('calc width', async () => {
await later();
expect(wrapper).toMatchSnapshot();
});
test('track color prop', async () => {
const wrapper = mount(Progress, {
propsData: {
trackColor: 'green'
}
});
expect(wrapper.element.style.background).toEqual('green');
});