Skip to content

whyNotEqual #153

Description

@ccorcos

I'm getting what appears to be a bogus error:

    Expected { app: { data: {}, ui: { fetchinUser: false, fetchingInstruments: false, fetchingLoans: false, modalOpen: false, modalView: null, selectedTab: 0, sidebarOpen: false, sidebarView: null, snackbarList: [], snackbarNextId: 0 } }, form: { search: { _active: 'query', _asyncValidating: false, _error: undefined, _initialized: false, _submitFailed: false, _submitting: false, query: { _isFieldValue: true, visited: true } } } } to equal { app: { data: {}, ui: { fetchinUser: false, fetchingInstruments: false, fetchingLoans: false, modalOpen: false, modalView: null, selectedTab: 0, sidebarOpen: false, sidebarView: null, snackbarList: [], snackbarNextId: 0 } }, form: { search: { _active: 'query', _asyncValidating: false, _initialized: false, _submitFailed: false, _submitting: false, query: { _isFieldValue: true, visited: true } } } }

It would be great is failed assertions would use whyNotEqual to report the issue:

https://www.npmjs.com/package/is-equal#want-to-know-why-two-values-are-not-equal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions