2026-01-02 11:42:37 +01:00
|
|
|
import { describe, expect, test } from "vitest";
|
2025-12-30 12:34:03 +01:00
|
|
|
import { ORDER } from "./ORDER";
|
|
|
|
|
import { CUSTOMER } from "./CUSTOMER";
|
|
|
|
|
import { ADDRESS } from "./ADDRESS";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe("Test pool", () => {
|
|
|
|
|
|
|
|
|
|
test("generacion de costumers", () => {
|
|
|
|
|
const costumers = [
|
|
|
|
|
CUSTOMER.randomValue()
|
|
|
|
|
]
|
2026-01-02 11:42:37 +01:00
|
|
|
expect(costumers[0]).toBeDefined()
|
2025-12-30 12:34:03 +01:00
|
|
|
})
|
|
|
|
|
test("generacion de address", () => {
|
2026-01-02 11:42:37 +01:00
|
|
|
const address = [
|
2025-12-30 12:34:03 +01:00
|
|
|
ADDRESS.randomValue()
|
|
|
|
|
]
|
2026-01-02 11:42:37 +01:00
|
|
|
expect(address[0]).toBeDefined()
|
2025-12-30 12:34:03 +01:00
|
|
|
})
|
|
|
|
|
test("generacion de 3 order distintos", () => {
|
|
|
|
|
const orders = [
|
|
|
|
|
ORDER.randomValue(),
|
|
|
|
|
]
|
|
|
|
|
|
2026-01-02 11:42:37 +01:00
|
|
|
console.dir(orders, { depth: null })
|
2025-12-30 12:34:03 +01:00
|
|
|
})
|
2026-01-02 11:42:37 +01:00
|
|
|
|
2025-12-30 12:34:03 +01:00
|
|
|
})
|