<commit_before>/*   ./spec/bmi_ui_spec.js
*/
describe('BMI_UI - index.html', function() {
    beforeEach(function() {
        jasmine.getFixtures().fixturesPath = '.';
        loadFixtures('index.html');
        $.holdReady(false);
        $("input[type='radio']").get(0).checked = true;
        $('#weight').val(85);
        $('#height').val(185);
        $('#calculate').trigger('click');
    });

    it("displays metric BMI Value", function() {
        expect($('#display_value').text()).toBe('Your BMI is 24.84');
    });

    it("displays metric BMI Message", function() {
        expect($('#display_message').text()).toBe('and you are Normal');
    });



    it("displays imperial BMI Value", function() {
        $("input[type='radio']").get(1).checked = true;
        $('#weight').val(187);
        $('#height').val(72);
        $('#calculate').trigger('click');
        expect($('#display_value').text()).toBe('Your BMI is 25.36');
    });

    it("displays imperial BMI Message", function() {
        $('#weight').val('187');
        $('#height').val('72');
        $('#toggle').val('true');
        expect($('#display_message').text()).toBe('and you are Overweight');
    });
});
<commit_msg>add 'context' to imperial case by enclosing those tests in their own describe<commit_after>/*   ./spec/bmi_ui_spec.js
*/
describe('BMI_UI - index.html', function() {
    beforeEach(function() {
        jasmine.getFixtures().fixturesPath = '.';
        loadFixtures('index.html');
        $.holdReady(false);
        $("input[type='radio']").get(0).checked = true;
        $('#weight').val(85);
        $('#height').val(185);
        $('#calculate').trigger('click');
    });

    it("displays metric BMI Value", function() {
        expect($('#display_value').text()).toBe('Your BMI is 24.84');
    });

    it("displays metric BMI Message", function() {
        expect($('#display_message').text()).toBe('and you are Normal');
    });


    beforeEach(function (){
        $("input[type='radio']").get(1).checked = true;
        $('#weight').val(187);
        $('#height').val(72);
        $('#calculate').trigger('click');

        it("displays imperial BMI Value", function() {
            expect($('#display_value').text()).toBe('Your BMI is 25.36');
        });

        it("displays imperial BMI Message", function() {
            expect($('#display_message').text()).toBe('and you are Overweight');
        });
    });
});

{'fraction_non_alphanumeric': 0.22874743326488706, 'fraction_numerical': 0.018480492813141684, 'mean_word_length': 2.891373801916933, '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': '5353461', 'n_tokens_mistral': 758, 'n_tokens_neox': 708, 'n_words': 126}