LearningProcesss / boardgamegeekjsclient

Typescript written API wrapper for Boardgamegeek XML2 API
MIT License
18 stars 6 forks source link

Improve test #43

Open LearningProcesss opened 1 year ago

LearningProcesss commented 1 year ago

Better interfacce mock? Reflect JavaScript construct

expect(dto).toEqual( expect.objectContaining({ userid: expect.any(Number), total: expect.any(Number), page: expect.any(Number), username: expect.any(String), }) );