File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,6 +234,8 @@ MolComponentImplTest >> testForEventsRemoveProducer [
234234
235235 | component |
236236 component := MolCompleteComponentImpl start: #myComponentA .
237+ " initial state"
238+ self assert: (component eventsSubscribers at: MolUsedEvents ) equals: MolUtils defaultComponentName.
237239
238240 component forEvents: MolUsedEvents useAllProducers: #(#producerA #producerB #producerC) .
239241
@@ -247,7 +249,8 @@ MolComponentImplTest >> testForEventsRemoveProducer [
247249
248250 component forEvents: MolUsedEvents removeProducer: #producerC .
249251 self assert: component eventsSubscribers size equals: 1 .
250- self assert: (component eventsSubscribers at: MolUsedEvents ) equals: nil .
252+ " back to initial state"
253+ self assert: (component eventsSubscribers at: MolUsedEvents ) equals: MolUtils defaultComponentName.
251254]
252255
253256{ #category : #' tests - connecting - events producers' }
You can’t perform that action at this time.
0 commit comments