<commit_before>'use strict';

describe('familyService', function() {
    var items = [
        {_id: 'z', family_id: 'family1', task: {desk: 'desk1'}},
        {_id: 'x', family_id: 'family1', task: {desk: 'desk2'}},
        {_id: 'c', family_id: 'family2', task: {desk: 'desk3'}}
    ];
    var deskList = {
        desk1: {title: 'desk1'},
        desk3: {title: 'desk3'}
    };

    beforeEach(module('superdesk.archive.directives'));
    beforeEach(module(function($provide) {
        $provide.service('api', function($q) {
            return function() {
                return {<commit_msg>fix(tests): add mocks module to family specs<commit_after>'use strict';

describe('familyService', function() {
    var items = [
        {_id: 'z', family_id: 'family1', task: {desk: 'desk1'}},
        {_id: 'x', family_id: 'family1', task: {desk: 'desk2'}},
        {_id: 'c', family_id: 'family2', task: {desk: 'desk3'}}
    ];
    var deskList = {
        desk1: {title: 'desk1'},
        desk3: {title: 'desk3'}
    };

    beforeEach(module('superdesk.mocks'));
    beforeEach(module('superdesk.archive.directives'));
    beforeEach(module(function($provide) {
        $provide.service('api', function($q) {
            return function() {
                return {
                    find: function() {
                        return $q.reject({});
                    },
{'fraction_non_alphanumeric': 0.1819505094614265, 'fraction_numerical': 0.01455604075691412, 'mean_word_length': 2.4547738693467336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7477046', 'n_tokens_mistral': 468, 'n_tokens_neox': 457, 'n_words': 95}