{"size": 1133, "ext": "js", "max_stars_repo_path": "docs/arrow_tutorial/mocha/func_test/test/test-int.js", "max_stars_repo_name": "pranavparikh/arrow", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "docs/arrow_tutorial/mocha/func_test/test/test-int.js", "max_issues_repo_name": "pranavparikh/arrow", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "docs/arrow_tutorial/mocha/func_test/test/test-int.js", "max_forks_repo_name": "pranavparikh/arrow", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.1224489796, "max_line_length": 84, "alphanum_fraction": 0.5110326567}
/*
 * Like test_func.js, this is just another test as far as arrow is concerned
 * The difference here is the expected values of test.
 * It delegates actual testing to test-lib.js, which performs the actual assertions 
 */
var
    self = this,
    Y,
    chai;

describe('test-int-tests',function() {

    describe('#structure', function(){

        before(function (done) {

            // Initialize chai and YUI
            if(typeof window  == "undefined" && typeof chai  == "undefined"){
                chai = require('chai');
            }
            else{
                chai = window.chai;
            }

            Y = YUI().use(['node','arrow-test-tabview'], function (){
                done();
            });

        });

        it('test tab presence', function(done){

            //Get access to test-lib.js
            var testLib = Y.Arrow.Test.TabView;
            // render tab view
            var tabid = "#things";
            var tabNode = Y.one(document.body).one(tabid);

            testLib.validatePresence(tabNode, ["Asparagus", "Bird", "Coffee"]);
            done();

        });

    });

});


