We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7af126 commit 90467eaCopy full SHA for 90467ea
__tests__/tests/utilities/text-helper.js
@@ -1,16 +1,18 @@
1
import { emojifyText, abbreviateNumber } from 'utils';
2
-import sinon from 'sinon';
3
import emoji from 'node-emoji';
4
5
describe('Text Helper', () => {
6
describe('emojifyText', () => {
7
it('should call correcly with text params', () => {
8
- const emojify = sinon.spy(emoji, 'emojify');
+ const emojify = jest.spyOn(emoji, 'emojify');
9
const input = 'I need more :coffee';
10
11
emojifyText(input);
12
13
- expect(emojify.calledWith(input)).toEqual(true);
+ expect(emojify).toBeCalledWith(input);
+
14
+ emojify.mockReset();
15
+ emojify.mockRestore();
16
});
17
18
0 commit comments