Skip to content

Commit 4f1f245

Browse files
committed
update test
1 parent d750911 commit 4f1f245

File tree

9 files changed

+48
-24
lines changed

9 files changed

+48
-24
lines changed

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/zod/custom-contract-name/@orpc/contract.gen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ export const fooBarPutRpc = base.route({
4646
tags: ['fooBaz', 'barBaz']
4747
}).output(zFooBarPutResponse);
4848

49-
export const router = { foo: {
49+
export const router = {
50+
foo: {
5051
get: getFooRpc,
5152
fooPost: fooPostRpc,
5253
fooPut: fooPutRpc,
5354
getBar: getFooBarRpc,
5455
fooBarPost: fooBarPostRpc,
5556
fooBarPut: fooBarPutRpc
56-
} };
57+
}
58+
};
5759

5860
export type Router = typeof router;

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/zod/custom-router-name/@orpc/contract.gen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ export const fooBarPutContract = base.route({
4646
tags: ['fooBaz', 'barBaz']
4747
}).output(zFooBarPutResponse);
4848

49-
export const contract = { foo: {
49+
export const contract = {
50+
foo: {
5051
get: getFooContract,
5152
fooPost: fooPostContract,
5253
fooPut: fooPutContract,
5354
getBar: getFooBarContract,
5455
fooBarPost: fooBarPostContract,
5556
fooBarPut: fooBarPutContract
56-
} };
57+
}
58+
};
5759

5860
export type Contract = typeof contract;

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/zod/default/@orpc/contract.gen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ export const fooBarPutContract = base.route({
4646
tags: ['fooBaz', 'barBaz']
4747
}).output(zFooBarPutResponse);
4848

49-
export const router = { foo: {
49+
export const router = {
50+
foo: {
5051
get: getFooContract,
5152
fooPost: fooPostContract,
5253
fooPut: fooPutContract,
5354
getBar: getFooBarContract,
5455
fooBarPost: fooBarPostContract,
5556
fooBarPut: fooBarPutContract
56-
} };
57+
}
58+
};
5759

5860
export type Router = typeof router;

packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/zod/custom-contract-name/@orpc/contract.gen.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,19 @@ export const getPostByIdRpc = base.route({
9696
tags: ['posts']
9797
}).input(zGetPostByIdData).output(zGetPostByIdResponse);
9898

99-
export const router = { users: {
99+
export const router = {
100+
users: {
100101
get: getUsersRpc,
101102
create: createUserRpc,
102103
delete: deleteUserRpc,
103104
getById: getUserByIdRpc,
104105
update: updateUserRpc
105-
}, posts: {
106+
},
107+
posts: {
106108
get: getPostsRpc,
107109
create: createPostRpc,
108110
getById: getPostByIdRpc
109-
} };
111+
}
112+
};
110113

111114
export type Router = typeof router;

packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/zod/custom-router-name/@orpc/contract.gen.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696
tags: ['posts']
9797
}).input(zGetPostByIdData).output(zGetPostByIdResponse);
9898

99-
export const contract = { users: {
99+
export const contract = {
100+
users: {
100101
get: getUsersContract,
101102
create: createUserContract,
102103
delete: deleteUserContract,
103104
getById: getUserByIdContract,
104105
update: updateUserContract
105-
}, posts: {
106+
},
107+
posts: {
106108
get: getPostsContract,
107109
create: createPostContract,
108110
getById: getPostByIdContract
109-
} };
111+
}
112+
};
110113

111114
export type Contract = typeof contract;

packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/zod/default/@orpc/contract.gen.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696
tags: ['posts']
9797
}).input(zGetPostByIdData).output(zGetPostByIdResponse);
9898

99-
export const router = { users: {
99+
export const router = {
100+
users: {
100101
get: getUsersContract,
101102
create: createUserContract,
102103
delete: deleteUserContract,
103104
getById: getUserByIdContract,
104105
update: updateUserContract
105-
}, posts: {
106+
},
107+
posts: {
106108
get: getPostsContract,
107109
create: createPostContract,
108110
getById: getPostByIdContract
109-
} };
111+
}
112+
};
110113

111114
export type Router = typeof router;

packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/zod/custom-contract-name/@orpc/contract.gen.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,19 @@ export const getPostByIdRpc = base.route({
9696
tags: ['posts']
9797
}).input(zGetPostByIdData).output(zGetPostByIdResponse);
9898

99-
export const router = { users: {
99+
export const router = {
100+
users: {
100101
get: getUsersRpc,
101102
create: createUserRpc,
102103
delete: deleteUserRpc,
103104
getById: getUserByIdRpc,
104105
update: updateUserRpc
105-
}, posts: {
106+
},
107+
posts: {
106108
get: getPostsRpc,
107109
create: createPostRpc,
108110
getById: getPostByIdRpc
109-
} };
111+
}
112+
};
110113

111114
export type Router = typeof router;

packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/zod/custom-router-name/@orpc/contract.gen.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696
tags: ['posts']
9797
}).input(zGetPostByIdData).output(zGetPostByIdResponse);
9898

99-
export const contract = { users: {
99+
export const contract = {
100+
users: {
100101
get: getUsersContract,
101102
create: createUserContract,
102103
delete: deleteUserContract,
103104
getById: getUserByIdContract,
104105
update: updateUserContract
105-
}, posts: {
106+
},
107+
posts: {
106108
get: getPostsContract,
107109
create: createPostContract,
108110
getById: getPostByIdContract
109-
} };
111+
}
112+
};
110113

111114
export type Contract = typeof contract;

packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/zod/default/@orpc/contract.gen.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,19 @@ export const getPostByIdContract = base.route({
9696
tags: ['posts']
9797
}).input(zGetPostByIdData).output(zGetPostByIdResponse);
9898

99-
export const router = { users: {
99+
export const router = {
100+
users: {
100101
get: getUsersContract,
101102
create: createUserContract,
102103
delete: deleteUserContract,
103104
getById: getUserByIdContract,
104105
update: updateUserContract
105-
}, posts: {
106+
},
107+
posts: {
106108
get: getPostsContract,
107109
create: createPostContract,
108110
getById: getPostByIdContract
109-
} };
111+
}
112+
};
110113

111114
export type Router = typeof router;

0 commit comments

Comments
 (0)