Commit c05e23bc authored by Paul Slaughter's avatar Paul Slaughter

Combine multiple expects into single props expect

parent ec45178c
...@@ -96,10 +96,10 @@ describe('StaticSiteEditor', () => { ...@@ -96,10 +96,10 @@ describe('StaticSiteEditor', () => {
buildWrapper(); buildWrapper();
expect(findSavedChangesMessage().exists()).toBe(true); expect(findSavedChangesMessage().exists()).toBe(true);
expect(findSavedChangesMessage().props('returnUrl')).toBe(returnUrl); expect(findSavedChangesMessage().props()).toEqual({
expect(findSavedChangesMessage().props('commit')).toBe(savedContentMeta.commit); returnUrl,
expect(findSavedChangesMessage().props('branch')).toBe(savedContentMeta.branch); ...savedContentMeta,
expect(findSavedChangesMessage().props('mergeRequest')).toBe(savedContentMeta.mergeRequest); });
}); });
describe('when content is not loaded', () => { describe('when content is not loaded', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment