mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-24 04:02:03 +02:00
19.0 vanilla
This commit is contained in:
parent
6e54c1af6c
commit
3ca647e428
1087 changed files with 132065 additions and 108499 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import { test, expect } from "@odoo/hoot";
|
||||
import { setupPosEnv } from "@point_of_sale/../tests/unit/utils";
|
||||
import { definePosModels } from "@point_of_sale/../tests/unit/data/generate_model_definitions";
|
||||
|
||||
definePosModels();
|
||||
|
||||
test("getCashierName", async () => {
|
||||
const store = await setupPosEnv();
|
||||
store.addNewOrder();
|
||||
const emp = store.models["hr.employee"].get(3);
|
||||
store.setCashier(emp);
|
||||
const posOrder = store.getOrder();
|
||||
expect(posOrder.getCashierName()).toBe("Employee1");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue