Titre simple et clair
Description courte et rapide de ce qu’on va trouver dans la PR. Utiliser au maximum le format markdown, une simple liste peut être si explicite !
jest.mock('lodash/debounce', () => { | |
const originalDebounce = jest.requireActual('lodash/debounce') | |
return jest.fn((func, wait, options) => { | |
const debounced = originalDebounce(func, wait, options) | |
debounced.flush = jest.fn(() => originalDebounce(func, 0, options).flush()) | |
debounced.cancel = jest.fn(() => originalDebounce(func, 0, options).cancel()) | |
return debounced | |
}) | |
}) |
// from https://httpstatuses.com | |
// 1×× Informational | |
export const CONTINUE = 100; | |
export const SWITCHING_PROTOCOLS = 101; | |
export const PROCESSING = 102; | |
// 2×× Success | |
export const OK = 200; | |
export const CREATED = 201; |