DEV Community

loading...

Discussion on: My "Whoa, I didn't know that!" moments with Jest

Collapse
iomtt94 profile image
Bohdan Artemenko • Edited

I don't know is it correct, my first example:

test('Created with old code style where object has 2 fields', () => {
    expect(github).toMatchObject({
      'name': expect.any(String),
      'ip': expect.any(String),
    });
  });