# All files / __test__ fixtures-pagination.js

30.77% Statements 4/13
100% Branches 0/0
0% Functions 0/2
30.77% Lines 4/13

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    1161x

    1x

    1x

    1x
     const $ = require('jquery');

    var fixturePagination = {
        list: function(valueNames) {
            var listHtml = $('<div id="list-pagination"><ul class="list"></ul><ul class="pagination"></ul></div>'),
                item = "";

            item = "<li>";
            for (var i = 0; i < valueNames.length; i++) {
                item += '<span class="'+valueNames[i]+'"</span>';
            }
            item += "</li>";

            $(document.body).append(listHtml);

            return item;
        },
        removeList: function() {
            $('#list-pagination').remove();
        },
        jonny: {
            name: "Jonny Strömberg",
            born: '1986'
        },
        martina: {
            name: "Martina Elm",
            born: '1986'
        },
        angelica: {
            name: "Angelica Abraham",
            born: '1986'
        },
        sebastian: {
            name: "Sebastian Höglund",
            born: '1989'
        },
        imma: {
            name: "Imma Grafström",
            born: '1953'
        },
        hasse: {
            name: "Hasse Strömberg",
            born: '1955'
        },
        fredrik: {
            name: "Fredrik Martinsson",
            born: '1987'
        },
        jonas: {
            name: "Jonas Arnklint",
            born: '1987'
        },
        egon: {
            name: "Egon Östgren",
            born: '1983'
        },
        lars: {
            name: "Lars Larsson",
            born: '1992'
        },
        bertil: {
            name: "Bertil Cool",
            born: '1943'
        },
        ture: {
            name: "Ture Tur",
            born: '1965'
        },
        anders: {
            name: "Anders",
            born: '1987'
        },
        anna: {
            name: "Anna",
            born: '1987'
        },
        matilda: {
            name: "Matilda",
            born: '1983'
        },
        li: {
            name: "Li",
            born: '1992'
        },
        asa: {
            name: "Åsa",
            born: '1943'
        },
        gun: {
            name: "Gun",
            born: '1965'
        }
    };
    fixturePagination.all = [
        fixturePagination.jonny,
        fixturePagination.martina,
        fixturePagination.angelica,
        fixturePagination.sebastian,
        fixturePagination.imma,
        fixturePagination.hasse,
        fixturePagination.fredrik,
        fixturePagination.jonas,
        fixturePagination.egon,
        fixturePagination.lars,
        fixturePagination.bertil,
        fixturePagination.ture,
        fixturePagination.anders,
        fixturePagination.anna,
        fixturePagination.matilda,
        fixturePagination.li,
        fixturePagination.asa,
        fixturePagination.gun
    ];

    module.exports = fixturePagination;