revert fb8e77bb68
Local Build and Deploy / deploy (push) Successful in 1m11s

revert style: clean up code with prettier and eslint
This commit is contained in:
remco committed 2026-07-12 21:02:03 +02:00
1 parent 27de078f54
commit e85e4d74ea
378 files changed
+20710 -22428

No files matched your search

+21 -21
View File
@@ -1,46 +1,46 @@
// @vitest-environment node
import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from 'vitest'
vi.mock("@/lib/prisma", () => ({
vi.mock('@/lib/prisma', () => ({
prisma: {},
}));
}))
vi.mock("@/lib/services/furni-data", () => ({
vi.mock('@/lib/services/furni-data', () => ({
appendFurniEntry: vi.fn(),
buildFurniEntry: vi.fn(),
removeFurniEntry: vi.fn(),
}));
}))
vi.mock("@/lib/services/habbo-furnidata-cache", () => ({
vi.mock('@/lib/services/habbo-furnidata-cache', () => ({
lookupHabboIt: vi.fn(),
}));
}))
vi.mock("@/lib/services/import/core/download", () => ({
vi.mock('@/lib/services/import/core/download', () => ({
downloadFile: vi.fn(),
validatePngBytes: vi.fn(),
validateSwfBytes: vi.fn(),
}));
}))
vi.mock("@/lib/services/swf-to-nitro", () => ({
vi.mock('@/lib/services/swf-to-nitro', () => ({
convertSwfToNitro: vi.fn(),
extractIconFromSwf: vi.fn(),
}));
}))
import { buildItemsBaseEnrichmentUpdate } from "./furni-import";
import { buildItemsBaseEnrichmentUpdate } from './furni-import'
describe("buildItemsBaseEnrichmentUpdate", () => {
it("only updates columns present in the live Arcturus items_base schema", () => {
describe('buildItemsBaseEnrichmentUpdate', () => {
it('only updates columns present in the live Arcturus items_base schema', () => {
const update = buildItemsBaseEnrichmentUpdate({
id: 123,
dims: { x: 2, y: 3, z: 1.5 },
cansiton: true,
canlayon: false,
canstandon: true,
allowStack: "1",
interactionType: "default",
});
allowStack: '1',
interactionType: 'default',
})
expect(update.sql).not.toContain("specialtype");
expect(update.values).toEqual([2, 3, 1.5, "1", "0", "1", "1", "default", 123]);
});
});
expect(update.sql).not.toContain('specialtype')
expect(update.values).toEqual([2, 3, 1.5, '1', '0', '1', '1', 'default', 123])
})
})