How to use the jest/boards/mock_data.mockMilestone.title function in jest

To help you get started, we’ve selected a few jest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gitlabhq / gitlabhq / spec / frontend / boards / components / sidebar / board_sidebar_milestone_select_spec.js View on Github external
it('renders milestone title when set', () => {
    createWrapper({ milestone: TEST_MILESTONE });

    expect(findCollapsed().text()).toContain(TEST_MILESTONE.title);
  });
github gitlabhq / gitlabhq / spec / frontend / boards / components / sidebar / board_sidebar_milestone_select_spec.js View on Github external
it('collapses sidebar and renders selected milestone', () => {
      expect(findCollapsed().isVisible()).toBe(true);
      expect(findCollapsed().text()).toContain(TEST_MILESTONE.title);
    });