Skip to content

Commit

Permalink
fix(Loading): tests for inline class
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkahn authored and tao1991123 committed Jan 17, 2019
1 parent 7e9ea48 commit da1c10a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/loading/index-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ describe('Test', () => {
const wrapper2 = mount(<Loading tip="hello world" visible={false}/>);
assert(!wrapper2.find('.next-loading').hasClass('next-open'));
});
it('should support inline', () => {
const wrapper = mount(<Loading tip="hello world"/>);
assert(wrapper.find('.next-loading').hasClass('next-loading-inline'));
const wrapper2 = mount(<Loading tip="hello world" inline={false}/>);
assert(!wrapper2.find('.next-loading').hasClass('next-loading-inline'));
});
});
});

0 comments on commit da1c10a

Please sign in to comment.