<commit_before>"use strict";

describe("recurveMock", function() {

    it("should instantiate core services", function() {
        $invoke(["$window", "$promise"], function($window, $promise) {
            expect($window).toBeDefined();
            expect($promise).toBeDefined();
        })
    });

    it("should instantiate services of included module", function() {
        var module = recurve.module();
        module.value("$a", 1);

        $include(module);<commit_msg>added core mock module tests<commit_after>"use strict";

describe("recurveMock", function() {

    it("should provide global shortcut methods for invoke and include", function() {
        expect($include).toBeDefined();
        expect($include).toBe(recurve.mock.include);

        expect($invoke).toBeDefined();
        expect($invoke).toBe(recurve.mock.invoke);
    });

    it("should instantiate core services", function() {
        $invoke(["$window", "$promise"], function($window, $promise) {
            expect($window).toBeDefined();
            expect($promise).toBeDefined();
        })
    });

    it("should instantiate services of included module", function() {
        var module = recurve.module();
        module.value("$a", 1);

        $include(module);
{'fraction_non_alphanumeric': 0.16280925778132482, 'fraction_numerical': 0.0015961691939345571, 'mean_word_length': 3.0846905537459284, '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': '200873', 'n_tokens_mistral': 350, 'n_tokens_neox': 328, 'n_words': 73}