feat: bump sinon to latest (#9926)

This commit is contained in:
Ville Brofeldt
2020-05-27 19:34:40 +03:00
committed by GitHub
parent c4040a2ae0
commit 5ff61048c6
5 changed files with 71 additions and 82 deletions

View File

@@ -48,7 +48,7 @@ describe('logger middleware', () => {
postStub = sinon.stub(SupersetClient, 'post');
});
afterEach(() => {
next.reset();
next.resetHistory();
postStub.restore();
});

View File

@@ -79,7 +79,7 @@ describe('EditableTitle', () => {
expect(editableWrapper.find('input').props().type).toBe('text');
});
afterEach(() => {
callback.reset();
callback.resetHistory();
editableWrapper.setState({ title: 'my title' });
editableWrapper.setState({ lastTitle: 'my title' });
});

View File

@@ -62,8 +62,8 @@ describe('ResultSet', () => {
const wrapper = shallow(<ResultSet {...mockedProps} />);
let spy;
beforeEach(() => {
clearQuerySpy.reset();
fetchQuerySpy.reset();
clearQuerySpy.resetHistory();
fetchQuerySpy.resetHistory();
spy = sinon.spy(ResultSet.prototype, 'UNSAFE_componentWillReceiveProps');
});
afterEach(() => {