@@ -41,28 +41,28 @@ describe('SelectionModel', () => {
4141 beforeEach ( ( ) => model = new SelectionModel ( true ) ) ;
4242
4343 it ( 'should be able to select multiple options' , ( ) => {
44- const onChangeSpy = jasmine . createSpy ( 'onChange spy' ) ;
44+ const changedSpy = jasmine . createSpy ( 'changed spy' ) ;
4545
46- model . changed . subscribe ( onChangeSpy ) ;
46+ model . changed . subscribe ( changedSpy ) ;
4747 model . select ( 1 ) ;
4848 model . select ( 2 ) ;
4949
5050 expect ( model . selected . length ) . toBe ( 2 ) ;
5151 expect ( model . isSelected ( 1 ) ) . toBe ( true ) ;
5252 expect ( model . isSelected ( 2 ) ) . toBe ( true ) ;
53- expect ( onChangeSpy ) . toHaveBeenCalledTimes ( 2 ) ;
53+ expect ( changedSpy ) . toHaveBeenCalledTimes ( 2 ) ;
5454 } ) ;
5555
5656 it ( 'should be able to select multiple options at the same time' , ( ) => {
57- const onChangeSpy = jasmine . createSpy ( 'onChange spy' ) ;
57+ const changedSpy = jasmine . createSpy ( 'changed spy' ) ;
5858
59- model . changed . subscribe ( onChangeSpy ) ;
59+ model . changed . subscribe ( changedSpy ) ;
6060 model . select ( 1 , 2 ) ;
6161
6262 expect ( model . selected . length ) . toBe ( 2 ) ;
6363 expect ( model . isSelected ( 1 ) ) . toBe ( true ) ;
6464 expect ( model . isSelected ( 2 ) ) . toBe ( true ) ;
65- expect ( onChangeSpy ) . toHaveBeenCalledTimes ( 1 ) ;
65+ expect ( changedSpy ) . toHaveBeenCalledTimes ( 1 ) ;
6666 } ) ;
6767
6868 it ( 'should be able to preselect multiple options' , ( ) => {
@@ -92,12 +92,12 @@ describe('SelectionModel', () => {
9292 } ) ;
9393 } ) ;
9494
95- describe ( 'onChange event' , ( ) => {
95+ describe ( 'changed event' , ( ) => {
9696 it ( 'should return the model that dispatched the event' , ( ) => {
9797 let model = new SelectionModel ( ) ;
9898 let spy = jasmine . createSpy ( 'SelectionModel change event' ) ;
9999
100- model . onChange . subscribe ( spy ) ;
100+ model . changed . subscribe ( spy ) ;
101101 model . select ( 1 ) ;
102102
103103 let event = spy . calls . mostRecent ( ) . args [ 0 ] ;
@@ -130,7 +130,7 @@ describe('SelectionModel', () => {
130130 // Note: this assertion is only here to run the getter.
131131 expect ( model . selected ) . toEqual ( [ ] ) ;
132132
133- model . onChange . subscribe ( ( ) => spy ( model . selected ) ) ;
133+ model . changed . subscribe ( ( ) => spy ( model . selected ) ) ;
134134 model . select ( 1 ) ;
135135
136136 expect ( spy ) . toHaveBeenCalledWith ( [ 1 ] ) ;
0 commit comments