Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('given a concrete matching server and matched methods and unmatched path should not match', async () => {
const url = randomUrl();
const method = pickOneHttpMethod();
const resource = await router.route({
resources: [{
id: chance.guid(),
method,
path: randomPath(),
responses: [],
servers: [{
url: url.toString(),
}]
}],
input: {
method,
url
}
});
expect(resource).toBeNull();
});
});