Browse Source

test: update command run and stop tests to use expect.not.objectContaining for options

carlos/505-improve-grapesjs-absolute-mode
Carlos 11 months ago
parent
commit
cfe84e6538
  1. 4
      packages/core/test/specs/commands/index.ts

4
packages/core/test/specs/commands/index.ts

@ -112,7 +112,7 @@ describe('Commands', () => {
obj.run(commName, options);
expect(command.run).toHaveBeenCalledWith(
expect.anything(),
expect.objectContaining(options),
expect.not.objectContaining(options),
expect.objectContaining(defaultOptions),
);
@ -144,7 +144,7 @@ describe('Commands', () => {
obj.stop(commName, options);
expect(command.stop).toHaveBeenCalledWith(
em,
expect.objectContaining(options),
expect.not.objectContaining(options),
expect.objectContaining(defaultOptions),
);

Loading…
Cancel
Save