NodeUnit – 使用通配符

我正在使用NodeUnit进行JSON REST API的自动验收testing。 我有一个testing创build资源,它返回创build的资源(根据此规范),我想比较API的结果与我自己的JSON对象,如:

test.deepEqual(response.body.data, { type: 'Employees', id: '1', attributes: { Name: 'Marten', Birthdate: '1995/05/25' }, relationships: { Speciality: { links: { self: testBase.baseUrl + 'Employees/1/relationships/Speciality', related: testBase.baseUrl + 'Employees/1/Speciality' } } }, links: { self: testBase.baseUrl + 'Employees/1' } }); 

只是一个问题:由于testing(NodeUnit)是asynchronous的,所创build的资源的Id可以是任何东西。 在这种情况下,“1”,但可能是“2”,甚至“95”。 那么,是否有可能使用通配符而不是数字值?