File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
packages/field-plugin/src/messaging/pluginMessage/pluginToContainerMessage Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -126,42 +126,38 @@ describe('PluginLoadedMessage', () => {
126
126
expect (
127
127
isPluginLoadedMessage ( {
128
128
...stub ,
129
- subscribeState : undefined ,
130
129
} ) ,
131
130
) . toEqual ( true )
132
131
} )
133
132
it ( 'is a boolean' , ( ) => {
134
133
expect (
135
134
isPluginLoadedMessage ( {
136
135
...stub ,
137
- subscribeState : true ,
136
+ enablePortalModal : true ,
138
137
} ) ,
139
138
) . toEqual ( true )
140
139
expect (
141
140
isPluginLoadedMessage ( {
142
141
...stub ,
143
- subscribeState : false ,
142
+ enablePortalModal : false ,
144
143
} ) ,
145
144
) . toEqual ( true )
146
- const { subscribeState : _subscribeState , ...subWithoutSubscribeState } =
147
- stub
148
- expect ( isPluginLoadedMessage ( subWithoutSubscribeState ) ) . toEqual ( true )
149
145
expect (
150
146
isPluginLoadedMessage ( {
151
147
...stub ,
152
- subscribeState : 'false' ,
148
+ enablePortalModal : 'false' ,
153
149
} ) ,
154
150
) . toEqual ( false )
155
151
expect (
156
152
isPluginLoadedMessage ( {
157
153
...stub ,
158
- subscribeState : 123 ,
154
+ enablePortalModal : 123 ,
159
155
} ) ,
160
156
) . toEqual ( false )
161
157
expect (
162
158
isPluginLoadedMessage ( {
163
159
...stub ,
164
- subscribeState : null ,
160
+ enablePortalModal : null ,
165
161
} ) ,
166
162
) . toEqual ( false )
167
163
} )
You can’t perform that action at this time.
0 commit comments