Skip to content

Commit

Permalink
refactor: inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
4lejandrito committed Oct 13, 2023
1 parent 28da31e commit e802a51
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ export default {
start: async () =>
new Promise<void>((resolve) => {
const app = jsonServer.create();
const router = jsonServer.router({
posts: [
{
id: 1,
it: "works!",
},
],
});
const middlewares = jsonServer.defaults();
app.use(middlewares);
app.use(router);
app.use(jsonServer.defaults());
app.use(
jsonServer.router({
posts: [
{
id: 1,
it: "works!",
},
],
}),
);
server = app.listen(3000, resolve);
}),
stop: () => server?.close(),
Expand Down

0 comments on commit e802a51

Please sign in to comment.