<commit_before>define(["underscore", "backbone", "jquery", "regulations", "regs-state", "interpretation-view", "regs-data", 'samplejson'], function(_, Backbone, $, RegsApp, RegsState, InterpretationView, RegsData, testjson) {
  describe("Interpretation views", function() {
    RegsData.parse(testjson);

    $('body')
        .append('<div id="I-2345-10">sdfsd</div>')
        .append('<li id="2345-10"><a href="I-2345-10" class="interpretation-ref">sdfds</a></li>');

    it("should have an initialized view", function() {
        $('.interpretation-ref').click();   

        expect(RegsState.openInterps['I-2345-10']).toBeTruthy();
    });
  });
});<commit_msg>some weak tests for interps<commit_after>define(["underscore", "backbone", "jquery", "regulations", "regs-state", "interpretation-view", "regs-data", 'samplejson'], function(_, Backbone, $, RegsApp, RegsState, InterpretationView, RegsData, testjson) {
  describe("Interpretation views", function() {
    RegsData.parse(testjson);

    $('body')
        .append('<div id="I-2345-10">sdfsd</div>')
        .append('<li id="2345-10"><a href="I-2345-10" class="interpretation-ref">sdfds</a></li>');

    it("should have an initialized view", function() {
        $('.interpretation-ref').click();   

        expect(RegsState.openInterps['I-2345-10']).toBeTruthy();
    });

    it("should have content", function() {
        $('.interpretation-ref').click();
        expect(RegsState.openInterps['I-2345-10'].model.content).toEqual("this is where we'd load the api response for I-2345-10 in json format.");
    });

  });
});
{'fraction_non_alphanumeric': 0.20793950850661624, 'fraction_numerical': 0.03780718336483932, 'mean_word_length': 4.240924092409241, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2556966', 'n_tokens_mistral': 559, 'n_tokens_neox': 516, 'n_words': 90}