Last active
December 28, 2015 20:52
-
-
Save alexanderfrankel/a6427688648e29ef8375 to your computer and use it in GitHub Desktop.
testing-in-karma-selecting-a-grade-spec.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('selecting a grade', function() { | |
beforeEach(function() { | |
$scope.selectGrade("third"); | |
}); | |
it('sets selectedGrade to the grade that was selected', function() { | |
expect($scope.selectedGrade).to.equal("third"); | |
}); | |
it('sets selectedStudents to an array all students in the grade that was selected', function() { | |
expect($scope.selectedStudents).to.equal([{name:"alex", grade:"third"}]); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment