📜  笑话测试对象数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.259000             🧑  作者: Mango

代码示例3
test('id should match', () => {
  const obj = {
    id: '111',
    productName: 'Jest Handbook',
    url: 'https://jesthandbook.com'
  };
  expect(obj.id).toEqual('111');
});