chore(format): add prettier-plugin-organize-imports and sort imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest"
|
||||
import { calculateOrderIncome } from "@/lib/domain/income"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
describe("calculateOrderIncome", () => {
|
||||
it("calculates percentage commission income", () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it } from "vitest"
|
||||
import { evaluateOrderTransition } from "@/lib/domain/order-machine"
|
||||
import type { Actor } from "@/lib/policy/actor"
|
||||
import type { UserRole } from "@/lib/types"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
function actor(role: UserRole, userId = "u1"): Actor {
|
||||
return { role, userId }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest"
|
||||
import { allow, deny, requireAuth } from "@/lib/policy/assert"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
describe("policy decision helpers", () => {
|
||||
it("returns ok for allow", () => {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { describe, expect, it } from "vitest"
|
||||
import { searchCatalog } from "@/lib/search/search-catalog"
|
||||
import { mockPlayers } from "@/lib/mock/players"
|
||||
import { mockShops } from "@/lib/mock/shops"
|
||||
import { mockServices } from "@/lib/mock/services"
|
||||
import { mockShops } from "@/lib/mock/shops"
|
||||
import type { SearchCatalogData } from "@/lib/search/search-catalog"
|
||||
import { searchCatalog } from "@/lib/search/search-catalog"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
const data: SearchCatalogData = {
|
||||
players: mockPlayers,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest"
|
||||
import { GET } from "@/app/api/search/route"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
describe("GET /api/search", () => {
|
||||
it("returns 200 with items and meta", async () => {
|
||||
|
||||
Reference in New Issue
Block a user