@@ -43,7 +43,7 @@ describe('SelectionModel', () => {
4343 it ( 'should be able to select multiple options' , ( ) => {
4444 const onChangeSpy = jasmine . createSpy ( 'onChange spy' ) ;
4545
46- model . onChange ! . subscribe ( onChangeSpy ) ;
46+ model . changed ! . subscribe ( onChangeSpy ) ;
4747 model . select ( 1 ) ;
4848 model . select ( 2 ) ;
4949
@@ -56,7 +56,7 @@ describe('SelectionModel', () => {
5656 it ( 'should be able to select multiple options at the same time' , ( ) => {
5757 const onChangeSpy = jasmine . createSpy ( 'onChange spy' ) ;
5858
59- model . onChange ! . subscribe ( onChangeSpy ) ;
59+ model . changed ! . subscribe ( onChangeSpy ) ;
6060 model . select ( 1 , 2 ) ;
6161
6262 expect ( model . selected . length ) . toBe ( 2 ) ;
@@ -112,7 +112,7 @@ describe('SelectionModel', () => {
112112
113113 model . select ( 1 ) ;
114114
115- model . onChange ! . subscribe ( spy ) ;
115+ model . changed ! . subscribe ( spy ) ;
116116
117117 model . select ( 2 ) ;
118118
@@ -144,7 +144,7 @@ describe('SelectionModel', () => {
144144 model = new SelectionModel ( true ) ;
145145 spy = jasmine . createSpy ( 'SelectionModel change event' ) ;
146146
147- model . onChange ! . subscribe ( spy ) ;
147+ model . changed ! . subscribe ( spy ) ;
148148 } ) ;
149149
150150 it ( 'should emit an event when a value is selected' , ( ) => {
@@ -167,7 +167,7 @@ describe('SelectionModel', () => {
167167 it ( 'should not emit an event when preselecting values' , ( ) => {
168168 model = new SelectionModel ( false , [ 1 ] ) ;
169169 spy = jasmine . createSpy ( 'SelectionModel initial change event' ) ;
170- model . onChange ! . subscribe ( spy ) ;
170+ model . changed ! . subscribe ( spy ) ;
171171
172172 expect ( spy ) . not . toHaveBeenCalled ( ) ;
173173 } ) ;
@@ -181,7 +181,7 @@ describe('SelectionModel', () => {
181181 model = new SelectionModel ( true , [ 1 , 2 , 3 ] ) ;
182182 spy = jasmine . createSpy ( 'SelectionModel change event' ) ;
183183
184- model . onChange ! . subscribe ( spy ) ;
184+ model . changed ! . subscribe ( spy ) ;
185185 } ) ;
186186
187187 it ( 'should emit an event when a value is deselected' , ( ) => {
@@ -218,7 +218,7 @@ describe('SelectionModel', () => {
218218 } ) ;
219219
220220 it ( 'should not have an onChange stream if change events are disabled' , ( ) => {
221- expect ( model . onChange ) . toBeFalsy ( ) ;
221+ expect ( model . changed ) . toBeFalsy ( ) ;
222222 } ) ;
223223
224224 it ( 'should still update the select value' , ( ) => {
0 commit comments