Skip to content

Commit

Permalink
test(Transition): Use jest.fn instead of sinon
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 9, 2019
1 parent c12a5f2 commit b6fd364
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Transition-test.js
Expand Up @@ -472,9 +472,9 @@ describe('Transition', () => {

describe('findDOMNode', () => {
it('uses ReactDOM.findDOMNode by default', done => {
const expectDiv = sinon.spy(node => expect(node.nodeName).toEqual('DIV'));
const expectDiv = jest.fn(node => expect(node.nodeName).toEqual('DIV'));
const handleExited = () => {
expect(expectDiv.called).toBe(true);
expect(expectDiv).toHaveBeenCalled()

done();
}
Expand Down Expand Up @@ -514,9 +514,9 @@ describe('Transition', () => {
}
}

const expectSpan = sinon.spy(node => expect(node.nodeName).toEqual('SPAN'));
const expectSpan = jest.fn(node => expect(node.nodeName).toEqual('SPAN'));
const handleExited = () => {
expect(expectSpan.called).toBe(true);
expect(expectSpan).toHaveBeenCalledWith();

done();
}
Expand Down

0 comments on commit b6fd364

Please sign in to comment.