Using expect.any(String) in object comparison in jest

后端 未结 0 1936
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 07:28

I have a code like below

    expect(insertedData).toEqual({
                id: expect.any(String),
                clientId: \'client1\',
                ...         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题