<commit_before>define([
    "home/models",
    "home/views/application_list_view", 
    "jquery"
], function (models, application_list_view, $) {
    "use strict";
    QUnit.module("home.views");
    QUnit.test("rendering", function (assert) {
        var model = new models.ApplicationListModel();
        var view = new application_list_view.ApplicationListView(model);
        model.update()
            .done(function() { view.render(); } )
            .done(function() {
                var applist = $("#applist");
                assert.equal(applist.children().length, 2);
            })
            .done(function() {
                model.app_data[0].image.ui_name = "Hello";
                view.update_entry(0);
            });
    });
});
<commit_msg>Fix view tests<commit_after>define([
    "home/models",
    "home/views/application_list_view",
    "jquery"
], function (models, application_list_view, $) {
    "use strict";
    QUnit.module("home.views");
    QUnit.test("rendering", function (assert) {
        assert.expect(2);

        var model = new models.ApplicationListModel();
        var view = application_list_view.applicationListView;

        assert.ok(view.loading);

        model.update()
            .done(function() {
                view.model = model;
                view.loading = false;
            } )
            .done(function() {
                assert.notOk(view.loading);
            });
    });
});

{'fraction_non_alphanumeric': 0.1459197786998617, 'fraction_numerical': 0.0027662517289073307, 'mean_word_length': 2.008316008316008, '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': '4129813', 'n_tokens_mistral': 420, 'n_tokens_neox': 403, 'n_words': 66}