describe('initialization', function() { it('sets grades to default array of grades', function() { expect($scope.grades).to.equal(["first", "second", "third"]); }); it('sets selectedGrade to null', function() { expect($scope.selectedGrade).to.be.null; }); it('sets selectedStudents to empty array', function() { expect($scope.selectedStudents).to.equal([]); }); it('sets allStudents to the index of students returned from the server', function() { expect($scope.allStudents).to.equal([{name: "alex", grade: "third"}, {name: "tom", grade: "second"}, {name: "silvio", grade: "first"} ]); }); });