@@ -11,7 +11,7 @@ import { loadApiTags } from "../src/loaders/loadApiTags";
11
11
import { resolveType } from "../src/loaders/loadType" ;
12
12
import type { OpenAPIV3 } from "openapi-types" ;
13
13
import { apiBody , apiOperation , apiParam , apiQuery , apiResponse , apiTags } from "../src" ;
14
- import { loadController } from "../src/loaders" ;
14
+ import { loadControllerOperation } from "../src/loaders" ;
15
15
16
16
describe ( "loaders" , ( ) => {
17
17
describe ( "loadApiBody" , ( ) => {
@@ -227,7 +227,7 @@ describe("loadController", () => {
227
227
const document = new DocumentBuilder ( ) ;
228
228
const operation = new OperationBuilder ( ) ;
229
229
230
- await loadController ( document , operation , UsersController . prototype , "create" ) ;
230
+ await loadControllerOperation ( document , operation , UsersController . prototype , "create" ) ;
231
231
232
232
expect ( operation . pattern ) . toBe ( "/users" ) ;
233
233
expect ( operation . method ) . toBe ( "post" ) ;
@@ -247,7 +247,7 @@ describe("loadController", () => {
247
247
const document = new DocumentBuilder ( ) ;
248
248
const operation = new OperationBuilder ( ) ;
249
249
250
- await loadController ( document , operation , UsersController . prototype , "create" ) ;
250
+ await loadControllerOperation ( document , operation , UsersController . prototype , "create" ) ;
251
251
const res = operation . build ( ) ;
252
252
253
253
expect ( res . tags ) . toContain ( "Hello" ) ;
@@ -267,7 +267,7 @@ describe("loadController", () => {
267
267
const document = new DocumentBuilder ( ) ;
268
268
const operation = new OperationBuilder ( ) ;
269
269
270
- await loadController ( document , operation , UsersController . prototype , "create" ) ;
270
+ await loadControllerOperation ( document , operation , UsersController . prototype , "create" ) ;
271
271
272
272
const res : any = operation . build ( ) ;
273
273
@@ -287,7 +287,7 @@ describe("loadController", () => {
287
287
const document = new DocumentBuilder ( ) ;
288
288
const operation = new OperationBuilder ( ) ;
289
289
290
- await loadController ( document , operation , UsersController . prototype , "create" ) ;
290
+ await loadControllerOperation ( document , operation , UsersController . prototype , "create" ) ;
291
291
292
292
const res : any = operation . build ( ) ;
293
293
@@ -308,7 +308,7 @@ describe("loadController", () => {
308
308
const document = new DocumentBuilder ( ) ;
309
309
const operation = new OperationBuilder ( ) ;
310
310
311
- await loadController ( document , operation , UsersController . prototype , "create" ) ;
311
+ await loadControllerOperation ( document , operation , UsersController . prototype , "create" ) ;
312
312
313
313
const res : any = operation . build ( ) ;
314
314
@@ -328,7 +328,7 @@ describe("loadController", () => {
328
328
const document = new DocumentBuilder ( ) ;
329
329
const operation = new OperationBuilder ( ) ;
330
330
331
- await loadController ( document , operation , UsersController . prototype , "create" ) ;
331
+ await loadControllerOperation ( document , operation , UsersController . prototype , "create" ) ;
332
332
333
333
const res : any = operation . build ( ) ;
334
334
0 commit comments