Skip to content

Commit da1c10a

Browse files
jdkahntao1991123
authored andcommitted
fix(Loading): tests for inline class
1 parent 7e9ea48 commit da1c10a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/loading/index-spec.js

+6
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,11 @@ describe('Test', () => {
3838
const wrapper2 = mount(<Loading tip="hello world" visible={false}/>);
3939
assert(!wrapper2.find('.next-loading').hasClass('next-open'));
4040
});
41+
it('should support inline', () => {
42+
const wrapper = mount(<Loading tip="hello world"/>);
43+
assert(wrapper.find('.next-loading').hasClass('next-loading-inline'));
44+
const wrapper2 = mount(<Loading tip="hello world" inline={false}/>);
45+
assert(!wrapper2.find('.next-loading').hasClass('next-loading-inline'));
46+
});
4147
});
4248
});

0 commit comments

Comments
 (0)