Skip to content

Commit

Permalink
Unskip test that succeeds now we treat functions as objects
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jun 5, 2022
1 parent aa1eff4 commit 34da0be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/assertions/to-satisfy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2691,8 +2691,7 @@ describe('to satisfy assertion', () => {
describe('when matching the constructor property of an object', () => {
function Foo() {}

// Fails because functions aren't modelled as objects:
it.skip('should succeed', () => {
it('should succeed', () => {
expect(new Foo(), 'to satisfy', { constructor: { name: 'Foo' } });
});

Expand Down

0 comments on commit 34da0be

Please sign in to comment.