Welcome to mirror list, hosted at ThFree Co, Russian Federation.

activity_calendar_spec.js « users « pages « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b33e92e14b256a4f4345fffe89c3652916aca0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { getLevelFromContributions } from '~/pages/users/activity_calendar';

describe('getLevelFromContributions', () => {
  it.each([
    [0, 0],
    [1, 1],
    [9, 1],
    [10, 2],
    [19, 2],
    [20, 3],
    [30, 4],
    [99, 4],
  ])('.getLevelFromContributions(%i, %i)', (count, expected) => {
    expect(getLevelFromContributions(count)).toBe(expected);
  });
});