UNPKG

@gaojuqian/object-test

Version:
31 lines (27 loc) 600 B
import * as jestUtils from '@jest/expect-utils'; var eq = jestUtils.equals; /** * expect({ a: 123 }).toEqual({ a: 123 }) -> true * @param a * @returns toEqual(b) -> boolean */ function expect (a) { try { return { toEqual: function (b) { return eq(a, b); }, not: { toEqual: function (b) { return !eq(a, b); }, }, }; } catch (error) { throw error; } } var index = {}; export { index as default, expect }; //# sourceMappingURL=index.js.map