Skip to content

Commit aed41d7

Browse files
committed
test(package): Fix test file
1 parent f245f42 commit aed41d7

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

test/service.test.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
// This file should be compilable if the types were created correctly.
22

3-
import { IArrayUsingEntity, IServiceEntity, IBooks, IFuncGetBooksParams, IActionUnboudActionParams, ActionUnboudActionReturn, IActionSubmitOrderParams } from "./gen/CatalogService";
3+
import {
4+
ActionUnboudActionReturn,
5+
FuncGetViewsCountReturn,
6+
IActionAddRatingParams,
7+
IActionSubmitOrderParams,
8+
IActionUnboudActionParams,
9+
IArrayUsingEntity,
10+
IBooks,
11+
IFuncGetBooksParams,
12+
IServiceEntity,
13+
} from "./gen/CatalogService";
414

515
const serviceEntity: IServiceEntity = {
616
id: "",
@@ -62,14 +72,14 @@ const book: IBooks = {
6272
symbol: "",
6373
},
6474
currency_code: "",
65-
longdesc: ""
75+
longdesc: "",
6676
};
6777

68-
const authorAddRatingAction: IBooks.actions.IActionAddRatingParams = {
78+
const authorAddRatingAction: IActionAddRatingParams = {
6979
stars: 1,
7080
};
7181

72-
const authorGetViewsCountFunction: IBooks.actions.FuncGetViewsCountReturn = 1;
82+
const authorGetViewsCountFunction: FuncGetViewsCountReturn = 1;
7383

7484
const getBooksFunctionParams: IFuncGetBooksParams = {
7585
author: 1,

0 commit comments

Comments
 (0)