chore: codify React component style
This commit is contained in:
@@ -5,7 +5,7 @@ const authentication = {
|
||||
user: { id: "user-1", email: "user@example.com" },
|
||||
};
|
||||
|
||||
export const handlers = [
|
||||
const handlers = [
|
||||
http.post("*/api/v1/auth/register", () => HttpResponse.json(authentication)),
|
||||
http.post("*/api/v1/auth/login", () => HttpResponse.json(authentication)),
|
||||
http.post("*/api/v1/auth/refresh", () =>
|
||||
@@ -53,3 +53,5 @@ export const handlers = [
|
||||
}),
|
||||
),
|
||||
];
|
||||
|
||||
export { handlers };
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
import { setupServer } from "msw/node";
|
||||
import { handlers } from "./handlers";
|
||||
|
||||
export const server = setupServer(...handlers);
|
||||
const server = setupServer(...handlers);
|
||||
|
||||
export { server };
|
||||
|
||||
Reference in New Issue
Block a user