Skip to content

Commit 9a26924

Browse files
committed
test[wip]: update unit tests for better separation of concerns
1 parent ecc634b commit 9a26924

23 files changed

+5444
-6643
lines changed

dist-test/account.messages.d.ts

Lines changed: 311 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,311 @@
1+
declare const _default: {
2+
print: boolean;
3+
pattern: string;
4+
allow: {
5+
missing: boolean;
6+
};
7+
calls: ({
8+
name: string;
9+
pattern: string;
10+
params: {
11+
aref: string;
12+
bref: string;
13+
account?: undefined;
14+
book?: undefined;
15+
end?: undefined;
16+
target_bref?: undefined;
17+
};
18+
out: {
19+
ok: boolean;
20+
why: string;
21+
account?: undefined;
22+
book?: undefined;
23+
account_id?: undefined;
24+
aref?: undefined;
25+
balance?: undefined;
26+
original_balance?: undefined;
27+
closing_balance?: undefined;
28+
opening_balance?: undefined;
29+
opening_balance_aref?: undefined;
30+
closing_entries?: undefined;
31+
opening_entries?: undefined;
32+
};
33+
} | {
34+
name: string;
35+
pattern: string;
36+
params: {
37+
account: {
38+
id$: string;
39+
oref: string;
40+
path: string;
41+
name: string;
42+
normal: string;
43+
};
44+
aref?: undefined;
45+
bref?: undefined;
46+
book?: undefined;
47+
end?: undefined;
48+
target_bref?: undefined;
49+
};
50+
out: {
51+
ok: boolean;
52+
account: {
53+
id: string;
54+
path0: string;
55+
path1: string;
56+
path2: string;
57+
org_id: string;
58+
oref: string;
59+
aref: string;
60+
path: string[];
61+
name: string;
62+
normal: string;
63+
};
64+
why?: undefined;
65+
book?: undefined;
66+
account_id?: undefined;
67+
aref?: undefined;
68+
balance?: undefined;
69+
original_balance?: undefined;
70+
closing_balance?: undefined;
71+
opening_balance?: undefined;
72+
opening_balance_aref?: undefined;
73+
closing_entries?: undefined;
74+
opening_entries?: undefined;
75+
};
76+
} | {
77+
name: string;
78+
pattern: string;
79+
params: {
80+
book: {
81+
id$: string;
82+
oref: string;
83+
name: string;
84+
start: number;
85+
end: number;
86+
};
87+
aref?: undefined;
88+
bref?: undefined;
89+
account?: undefined;
90+
end?: undefined;
91+
target_bref?: undefined;
92+
};
93+
out: {
94+
ok: boolean;
95+
book: {
96+
id: string;
97+
org_id: string;
98+
oref: string;
99+
bref: string;
100+
name: string;
101+
start: number;
102+
end: number;
103+
time: {
104+
kind: string;
105+
};
106+
};
107+
why?: undefined;
108+
account?: undefined;
109+
account_id?: undefined;
110+
aref?: undefined;
111+
balance?: undefined;
112+
original_balance?: undefined;
113+
closing_balance?: undefined;
114+
opening_balance?: undefined;
115+
opening_balance_aref?: undefined;
116+
closing_entries?: undefined;
117+
opening_entries?: undefined;
118+
};
119+
} | {
120+
name: string;
121+
pattern: string;
122+
params: {
123+
aref: string;
124+
bref: string;
125+
account?: undefined;
126+
book?: undefined;
127+
end?: undefined;
128+
target_bref?: undefined;
129+
};
130+
out: {
131+
ok: boolean;
132+
account_id: string;
133+
aref: string;
134+
balance: number;
135+
why?: undefined;
136+
account?: undefined;
137+
book?: undefined;
138+
original_balance?: undefined;
139+
closing_balance?: undefined;
140+
opening_balance?: undefined;
141+
opening_balance_aref?: undefined;
142+
closing_entries?: undefined;
143+
opening_entries?: undefined;
144+
};
145+
} | {
146+
name: string;
147+
pattern: string;
148+
params: {
149+
aref: string;
150+
bref: string;
151+
end: number;
152+
account?: undefined;
153+
book?: undefined;
154+
target_bref?: undefined;
155+
};
156+
out: {
157+
ok: boolean;
158+
why: string;
159+
account?: undefined;
160+
book?: undefined;
161+
account_id?: undefined;
162+
aref?: undefined;
163+
balance?: undefined;
164+
original_balance?: undefined;
165+
closing_balance?: undefined;
166+
opening_balance?: undefined;
167+
opening_balance_aref?: undefined;
168+
closing_entries?: undefined;
169+
opening_entries?: undefined;
170+
};
171+
} | {
172+
name: string;
173+
pattern: string;
174+
params: {
175+
aref: string;
176+
bref: string;
177+
end: number;
178+
account?: undefined;
179+
book?: undefined;
180+
target_bref?: undefined;
181+
};
182+
out: {
183+
ok: boolean;
184+
aref: string;
185+
original_balance: number;
186+
closing_balance: number;
187+
opening_balance: number;
188+
opening_balance_aref: null;
189+
closing_entries: never[];
190+
opening_entries: never[];
191+
why?: undefined;
192+
account?: undefined;
193+
book?: undefined;
194+
account_id?: undefined;
195+
balance?: undefined;
196+
};
197+
} | {
198+
name: string;
199+
pattern: string;
200+
params: {
201+
aref: string;
202+
bref: string;
203+
target_bref: string;
204+
end: number;
205+
account?: undefined;
206+
book?: undefined;
207+
};
208+
out: {
209+
ok: boolean;
210+
why: string;
211+
account?: undefined;
212+
book?: undefined;
213+
account_id?: undefined;
214+
aref?: undefined;
215+
balance?: undefined;
216+
original_balance?: undefined;
217+
closing_balance?: undefined;
218+
opening_balance?: undefined;
219+
opening_balance_aref?: undefined;
220+
closing_entries?: undefined;
221+
opening_entries?: undefined;
222+
};
223+
} | {
224+
name: string;
225+
pattern: string;
226+
params: {
227+
account: {
228+
id$: string;
229+
oref: string;
230+
path: string[];
231+
name: string;
232+
normal: string;
233+
};
234+
aref?: undefined;
235+
bref?: undefined;
236+
book?: undefined;
237+
end?: undefined;
238+
target_bref?: undefined;
239+
};
240+
out: {
241+
ok: boolean;
242+
account: {
243+
id: string;
244+
path0: string;
245+
path1: string;
246+
path2: string;
247+
aref: string;
248+
path: string[];
249+
name: string;
250+
org_id?: undefined;
251+
oref?: undefined;
252+
normal?: undefined;
253+
};
254+
why?: undefined;
255+
book?: undefined;
256+
account_id?: undefined;
257+
aref?: undefined;
258+
balance?: undefined;
259+
original_balance?: undefined;
260+
closing_balance?: undefined;
261+
opening_balance?: undefined;
262+
opening_balance_aref?: undefined;
263+
closing_entries?: undefined;
264+
opening_entries?: undefined;
265+
};
266+
} | {
267+
name: string;
268+
pattern: string;
269+
params: {
270+
account: {
271+
id$: string;
272+
oref: string;
273+
path: string;
274+
name: string;
275+
normal: string;
276+
};
277+
aref?: undefined;
278+
bref?: undefined;
279+
book?: undefined;
280+
end?: undefined;
281+
target_bref?: undefined;
282+
};
283+
out: {
284+
ok: boolean;
285+
account: {
286+
id: string;
287+
aref: string;
288+
normal: string;
289+
path0?: undefined;
290+
path1?: undefined;
291+
path2?: undefined;
292+
org_id?: undefined;
293+
oref?: undefined;
294+
path?: undefined;
295+
name?: undefined;
296+
};
297+
why?: undefined;
298+
book?: undefined;
299+
account_id?: undefined;
300+
aref?: undefined;
301+
balance?: undefined;
302+
original_balance?: undefined;
303+
closing_balance?: undefined;
304+
opening_balance?: undefined;
305+
opening_balance_aref?: undefined;
306+
closing_entries?: undefined;
307+
opening_entries?: undefined;
308+
};
309+
})[];
310+
};
311+
export default _default;

0 commit comments

Comments
 (0)