Skip to content

Commit

Permalink
test: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Aug 17, 2017
1 parent 9abce57 commit e061ada
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/auto-complete/__tests__/ac.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@ describe('AutoComplete with Custom Input Element Render', () => {
// should not filter data source defaultly
expect(dropdownWrapper.find('MenuItem').length).toBe(3);
});

it('child.ref should work', () => {
const mockRef = jest.fn();
mount(
<AutoComplete dataSource={[]}>
<input ref={mockRef} />
</AutoComplete>
);
expect(mockRef).toHaveBeenCalled();
});
});
2 changes: 2 additions & 0 deletions components/notification/__tests__/placement.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import notification from '..';

describe('Notification.placement', () => {
afterEach(() => notification.destroy());

function $$(className) {
return document.body.querySelectorAll(className);
}
Expand Down

0 comments on commit e061ada

Please sign in to comment.