Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderfrankel/59729660c67ff6c85006 to your computer and use it in GitHub Desktop.
Save alexanderfrankel/59729660c67ff6c85006 to your computer and use it in GitHub Desktop.
testing-in-karma-deselecting-a-grade-spec.js
describe('deselecting a grade', function() {
beforeEach(function() {
$scope.deselectGrade();
});
it('resets selectedGrade to null', function() {
expect($scope.selectedGrade).to.be(null);
});
it('resets selectedStudents to empty array', function() {
expect($scope.selectedStudents).to.equal([]);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment