mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-24 08:22:55 +00:00
nodejs: add tests to library (#7694)
* nodejs: add tests to library * new tests * remove message splitting * fix race * docs * replace extract-zip with yauzl that it wraps (high severity issue) * fix ci tests * skip server tests on macos and win unless SMP_SERVER is set * fix win test * fix win test --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
1 parent
ba9269a3ad
commit
46b2cf9f85
73 files changed
+957
-265
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
# Class: ChatCommandError
|
||||
|
||||
Defined in: [src/api.ts:5](../src/api.ts#L5)
|
||||
Defined in: [src/api.ts:5](../api.ts#L5)
|
||||
|
||||
## Extends
|
||||
|
||||
@@ -18,7 +18,7 @@ Defined in: [src/api.ts:5](../src/api.ts#L5)
|
||||
|
||||
> **new ChatCommandError**(`message`, `response`): `ChatCommandError`
|
||||
|
||||
Defined in: [src/api.ts:6](../src/api.ts#L6)
|
||||
Defined in: [src/api.ts:6](../api.ts#L6)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -44,7 +44,7 @@ Defined in: [src/api.ts:6](../src/api.ts#L6)
|
||||
|
||||
> **message**: `string`
|
||||
|
||||
Defined in: [src/api.ts:6](../src/api.ts#L6)
|
||||
Defined in: [src/api.ts:6](../api.ts#L6)
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -56,7 +56,7 @@ Defined in: [src/api.ts:6](../src/api.ts#L6)
|
||||
|
||||
> **name**: `string`
|
||||
|
||||
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1076](../node_modules/typescript/lib/lib.es5.d.ts#L1076)
|
||||
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1076](../../node_modules/typescript/lib/lib.es5.d.ts#L1076)
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -68,7 +68,7 @@ Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1076](../node_modules/typ
|
||||
|
||||
> **response**: `ChatResponse`
|
||||
|
||||
Defined in: [src/api.ts:6](../src/api.ts#L6)
|
||||
Defined in: [src/api.ts:6](../api.ts#L6)
|
||||
|
||||
***
|
||||
|
||||
@@ -76,7 +76,7 @@ Defined in: [src/api.ts:6](../src/api.ts#L6)
|
||||
|
||||
> `optional` **stack?**: `string`
|
||||
|
||||
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1078](../node_modules/typescript/lib/lib.es5.d.ts#L1078)
|
||||
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1078](../../node_modules/typescript/lib/lib.es5.d.ts#L1078)
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -88,7 +88,7 @@ Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1078](../node_modules/typ
|
||||
|
||||
> `static` **stackTraceLimit**: `number`
|
||||
|
||||
Defined in: [node\_modules/@types/node/globals.d.ts:67](../node_modules/@types/node/globals.d.ts#L67)
|
||||
Defined in: [node\_modules/@types/node/globals.d.ts:67](../../node_modules/@types/node/globals.d.ts#L67)
|
||||
|
||||
The `Error.stackTraceLimit` property specifies the number of stack frames
|
||||
collected by a stack trace (whether generated by `new Error().stack` or
|
||||
@@ -110,7 +110,7 @@ not capture any frames.
|
||||
|
||||
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
||||
|
||||
Defined in: [node\_modules/@types/node/globals.d.ts:51](../node_modules/@types/node/globals.d.ts#L51)
|
||||
Defined in: [node\_modules/@types/node/globals.d.ts:51](../../node_modules/@types/node/globals.d.ts#L51)
|
||||
|
||||
Creates a `.stack` property on `targetObject`, which when accessed returns
|
||||
a string representing the location in the code at which
|
||||
@@ -180,7 +180,7 @@ a();
|
||||
|
||||
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
||||
|
||||
Defined in: [node\_modules/@types/node/globals.d.ts:55](../node_modules/@types/node/globals.d.ts#L55)
|
||||
Defined in: [node\_modules/@types/node/globals.d.ts:55](../../node_modules/@types/node/globals.d.ts#L55)
|
||||
|
||||
#### Parameters
|
||||
|
||||
|
||||
Reference in new issue
Block a user