-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from joonashak/trunk
User mocking for testing and development
- Loading branch information
Showing
40 changed files
with
366 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { SidebarConfigArray } from "vuepress"; | ||
|
||
const sidebar: SidebarConfigArray = ["/index.md", "/api/index.md"]; | ||
const sidebar: SidebarConfigArray = [ | ||
"/index.md", | ||
"/testing.md", | ||
"/api/index.md", | ||
]; | ||
|
||
export default sidebar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Class: CloneBayMockingModule | ||
|
||
Mocking utilities for testing and development. | ||
|
||
_**CAUTION!** Importing this module into your application will make it | ||
completely vulnerable. Use only in controlled environments such as testing | ||
and development envs._ | ||
|
||
This module provides [CloneBayMockingService](CloneBayMockingService.md) and also mounts a | ||
controller that exposes the endpoints `/clone-bay-mocking/create-user` and | ||
`/clone-bay-mocking/login`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Class: CloneBayMockingService | ||
|
||
## Constructors | ||
|
||
### constructor | ||
|
||
• **new CloneBayMockingService**(`mockingService`): [`CloneBayMockingService`](CloneBayMockingService.md) | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `mockingService` | `MockingService` | | ||
|
||
#### Returns | ||
|
||
[`CloneBayMockingService`](CloneBayMockingService.md) | ||
|
||
#### Defined in | ||
|
||
[lib/src/api/clone-bay-mocking.service.ts:8](https://github.com/joonashak/nestjs-clone-bay/blob/37c762a/lib/src/api/clone-bay-mocking.service.ts#L8) | ||
|
||
## Methods | ||
|
||
### createUser | ||
|
||
▸ **createUser**(`user`): `Promise`\<`Document`\<`unknown`, {}, `UserDocument`\> & [`User`](User.md) & `Document`\<`any`, `any`, `any`\> & `SchemaTimestampsConfig` & \{ `_id`: `ObjectId` }\> | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `user` | `Omit`\<[`User`](User.md), ``"id"``\> | | ||
|
||
#### Returns | ||
|
||
`Promise`\<`Document`\<`unknown`, {}, `UserDocument`\> & [`User`](User.md) & `Document`\<`any`, `any`, `any`\> & `SchemaTimestampsConfig` & \{ `_id`: `ObjectId` }\> | ||
|
||
#### Defined in | ||
|
||
[lib/src/api/clone-bay-mocking.service.ts:10](https://github.com/joonashak/nestjs-clone-bay/blob/37c762a/lib/src/api/clone-bay-mocking.service.ts#L10) | ||
|
||
___ | ||
|
||
### loginWithEveId | ||
|
||
▸ **loginWithEveId**(`session`, `eveId`): `Promise`\<`UserDocument`\> | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `session` | `unknown` | | ||
| `eveId` | `number` | | ||
|
||
#### Returns | ||
|
||
`Promise`\<`UserDocument`\> | ||
|
||
#### Defined in | ||
|
||
[lib/src/api/clone-bay-mocking.service.ts:14](https://github.com/joonashak/nestjs-clone-bay/blob/37c762a/lib/src/api/clone-bay-mocking.service.ts#L14) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.