import React from 'react'; import PlanningEventManager from "../PlanningEventManager"; test('isDescriptionEmpty', () => { expect(PlanningEventManager.isDescriptionEmpty("")).toBeTrue(); expect(PlanningEventManager.isDescriptionEmpty("
")).toBeTrue(); expect(PlanningEventManager.isDescriptionEmpty("
")).toBeTrue();
expect(PlanningEventManager.isDescriptionEmpty(null)).toBeTrue();
expect(PlanningEventManager.isDescriptionEmpty(undefined)).toBeTrue();
expect(PlanningEventManager.isDescriptionEmpty("coucou")).toBeFalse();
expect(PlanningEventManager.isDescriptionEmpty("
coucou
")).toBeFalse(); });