I hereby claim:
- I am alexanderfrankel on github.
- I am alexanderfrankel (https://keybase.io/alexanderfrankel) on keybase.
- I have a public key ASAoHqDP1a3O0f2-b54jyhXNOYxcTchpkVvunNqVqkJyUgo
To claim this, I am signing this object:
| { | |
| "bills" => [ | |
| { | |
| due: "2019-01-01", | |
| line_items: [ | |
| { | |
| type: "occupancy_fee", | |
| amount_cents: 1500_00 | |
| }, | |
| { |
| { | |
| "occupancy_id" => "123", | |
| "billing_type" => "zuora", | |
| "payers" => [ | |
| { | |
| "id" => "123", | |
| "name" => "asd", | |
| "email" => "[email protected]" | |
| }, | |
| { |
| { | |
| "occupancy_id" => "123", | |
| "billing_type" => "zuora", | |
| "payers" => [ | |
| { | |
| "id" => "123", | |
| "name" => "asd", | |
| "email" => "[email protected]", | |
| "split_percentage" => "50", | |
| "flat_amount_cents" => "" |
I hereby claim:
To claim this, I am signing this object:
| // This is the controller definition | |
| // my-controller.js | |
| var myApp = angular.module('myApp', []); | |
| myApp.controller('MyController', ['$scope', '$http', function($scope, $http) { | |
| $scope.grades = ['first', 'second', 'third'] | |
| $scope.selectedGrade = null; | |
| $scope.selectedStudents = []; | |
| $scope.allStudents = []; |
| describe.only('selecting a grade', function() { | |
| beforeEach(function() { | |
| $scope.selectGrade("third"); | |
| }); | |
| ... | |
| }); |
| describe.only('MyController', function() { | |
| // define some variables | |
| var scope, httpBackend, myController; | |
| // load in our app | |
| beforeEach(module('MyApp')); | |
| // code to execute before each of our tests | |
| beforeEach(inject(function($rootScope, $httpBackend, $controller) { |
| 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() { |
| 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() { |
| 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() { |