|
@@ -230,9 +230,9 @@ describe('Commands', () => {
|
230
|
230
|
|
231
|
231
|
describe('push', () => {
|
232
|
232
|
it('deep clones input to avoid mutation errors', () => {
|
233
|
|
- const obj = {};
|
234
|
|
- uut.push('theComponentId', { component: { name: 'name', passProps: { foo: obj } } });
|
235
|
|
- expect(mockCommandsSender.push.mock.calls[0][2].data.passProps.foo).not.toBe(obj);
|
|
233
|
+ const options = {};
|
|
234
|
+ uut.push('theComponentId', { component: { name: 'name', options } });
|
|
235
|
+ expect(mockCommandsSender.push.mock.calls[0][2].data.options).not.toBe(options);
|
236
|
236
|
});
|
237
|
237
|
|
238
|
238
|
it('resolves with the parsed layout', async () => {
|