Skip to content

Instantly share code, notes, and snippets.

@apieceofbart
Created February 21, 2018 13:15
Show Gist options
  • Select an option

  • Save apieceofbart/d28690d52c46848c39d904ce8968bb27 to your computer and use it in GitHub Desktop.

Select an option

Save apieceofbart/d28690d52c46848c39d904ce8968bb27 to your computer and use it in GitHub Desktop.

Revisions

  1. apieceofbart revised this gist Feb 21, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion test.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    // somewhere on top
    import _ from 'lodash;
    import _ from 'lodash';
    jest.unmock('lodash');

    // then
  2. apieceofbart created this gist Feb 21, 2018.
    6 changes: 6 additions & 0 deletions test.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    // somewhere on top
    import _ from 'lodash;
    jest.unmock('lodash');

    // then
    _.debounce = jest.fn((fn) => fn);