@@ -43,7 +43,7 @@ describe('SelectionModel', () => {
43
43
it ( 'should be able to select multiple options' , ( ) => {
44
44
const onChangeSpy = jasmine . createSpy ( 'onChange spy' ) ;
45
45
46
- model . onChange ! . subscribe ( onChangeSpy ) ;
46
+ model . changed ! . subscribe ( onChangeSpy ) ;
47
47
model . select ( 1 ) ;
48
48
model . select ( 2 ) ;
49
49
@@ -56,7 +56,7 @@ describe('SelectionModel', () => {
56
56
it ( 'should be able to select multiple options at the same time' , ( ) => {
57
57
const onChangeSpy = jasmine . createSpy ( 'onChange spy' ) ;
58
58
59
- model . onChange ! . subscribe ( onChangeSpy ) ;
59
+ model . changed ! . subscribe ( onChangeSpy ) ;
60
60
model . select ( 1 , 2 ) ;
61
61
62
62
expect ( model . selected . length ) . toBe ( 2 ) ;
@@ -112,7 +112,7 @@ describe('SelectionModel', () => {
112
112
113
113
model . select ( 1 ) ;
114
114
115
- model . onChange ! . subscribe ( spy ) ;
115
+ model . changed ! . subscribe ( spy ) ;
116
116
117
117
model . select ( 2 ) ;
118
118
@@ -144,7 +144,7 @@ describe('SelectionModel', () => {
144
144
model = new SelectionModel ( true ) ;
145
145
spy = jasmine . createSpy ( 'SelectionModel change event' ) ;
146
146
147
- model . onChange ! . subscribe ( spy ) ;
147
+ model . changed ! . subscribe ( spy ) ;
148
148
} ) ;
149
149
150
150
it ( 'should emit an event when a value is selected' , ( ) => {
@@ -167,7 +167,7 @@ describe('SelectionModel', () => {
167
167
it ( 'should not emit an event when preselecting values' , ( ) => {
168
168
model = new SelectionModel ( false , [ 1 ] ) ;
169
169
spy = jasmine . createSpy ( 'SelectionModel initial change event' ) ;
170
- model . onChange ! . subscribe ( spy ) ;
170
+ model . changed ! . subscribe ( spy ) ;
171
171
172
172
expect ( spy ) . not . toHaveBeenCalled ( ) ;
173
173
} ) ;
@@ -181,7 +181,7 @@ describe('SelectionModel', () => {
181
181
model = new SelectionModel ( true , [ 1 , 2 , 3 ] ) ;
182
182
spy = jasmine . createSpy ( 'SelectionModel change event' ) ;
183
183
184
- model . onChange ! . subscribe ( spy ) ;
184
+ model . changed ! . subscribe ( spy ) ;
185
185
} ) ;
186
186
187
187
it ( 'should emit an event when a value is deselected' , ( ) => {
@@ -218,7 +218,7 @@ describe('SelectionModel', () => {
218
218
} ) ;
219
219
220
220
it ( 'should not have an onChange stream if change events are disabled' , ( ) => {
221
- expect ( model . onChange ) . toBeFalsy ( ) ;
221
+ expect ( model . changed ) . toBeFalsy ( ) ;
222
222
} ) ;
223
223
224
224
it ( 'should still update the select value' , ( ) => {
0 commit comments