method
test.MatchersBuiltin.toBeEmptyObject
Asserts that a value is an empty object.
expect({}).toBeEmptyObject();
expect({ a: 'hello' }).not.toBeEmptyObject();method
Asserts that a value is an empty object.
expect({}).toBeEmptyObject();
expect({ a: 'hello' }).not.toBeEmptyObject();