fix: sort routes into route records and lazily import
This commit is contained in:
parent
1928bfcb5e
commit
d917b69753
8 changed files with 33 additions and 37 deletions
|
@ -24,7 +24,7 @@ Deno.test({
|
|||
};
|
||||
|
||||
for await (const key of Object.keys(echoes)) {
|
||||
const response = await fetch(`http://${test_server_info.hostname}:${test_server_info.port}/echo/${key}`, {
|
||||
const response = await fetch(`http://${test_server_info.hostname}:${test_server_info.port}/api/echo/${key}`, {
|
||||
method: 'GET'
|
||||
});
|
||||
|
||||
|
@ -32,10 +32,6 @@ Deno.test({
|
|||
|
||||
asserts.assert(response.ok);
|
||||
asserts.assert(body);
|
||||
console.dir({
|
||||
body,
|
||||
key
|
||||
});
|
||||
asserts.assertEquals(body, echoes[key]);
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue