Merge branch 'patch-1' of https://github.com/trusktr/jasmine into main

* Merges #1931 from @trusktr
* Adds discussion of max timeout value to jsdocs
This commit is contained in:
Steve Gravrock
2021-09-25 13:28:34 -07:00
2 changed files with 12 additions and 6 deletions

View File

@@ -174,7 +174,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
/**
* Maximum object depth the pretty printer will print to.
* Set this to a lower value to speed up pretty printing if you have large objects.
* Set this to a lower value to speed up pretty printing if you have large objects. The default value is 8.
* @name jasmine.MAX_PRETTY_PRINT_DEPTH
* @since 1.3.0
*/
@@ -182,20 +182,23 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
/**
* Maximum number of array elements to display when pretty printing objects.
* This will also limit the number of keys and values displayed for an object.
* Elements past this number will be ellipised.
* Elements past this number will be ellipised. The default value is 50.
* @name jasmine.MAX_PRETTY_PRINT_ARRAY_LENGTH
* @since 2.7.0
*/
j$.MAX_PRETTY_PRINT_ARRAY_LENGTH = 50;
/**
* Maximum number of characters to display when pretty printing objects.
* Characters past this number will be ellipised.
* Characters past this number will be ellipised. The default value is 1000.
* @name jasmine.MAX_PRETTY_PRINT_CHARS
* @since 2.9.0
*/
j$.MAX_PRETTY_PRINT_CHARS = 1000;
/**
* Default number of milliseconds Jasmine will wait for an asynchronous spec to complete.
* While debugging tests, you may want to set this to a large
* number no bigger than 2147483647 so that `before` or `after` hooks do not run in the middle of an
* async test that you are stepping through in a debugger. The default value is 5000.
* @name jasmine.DEFAULT_TIMEOUT_INTERVAL
* @since 1.3.0
*/

View File

@@ -5,7 +5,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
/**
* Maximum object depth the pretty printer will print to.
* Set this to a lower value to speed up pretty printing if you have large objects.
* Set this to a lower value to speed up pretty printing if you have large objects. The default value is 8.
* @name jasmine.MAX_PRETTY_PRINT_DEPTH
* @since 1.3.0
*/
@@ -13,20 +13,23 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
/**
* Maximum number of array elements to display when pretty printing objects.
* This will also limit the number of keys and values displayed for an object.
* Elements past this number will be ellipised.
* Elements past this number will be ellipised. The default value is 50.
* @name jasmine.MAX_PRETTY_PRINT_ARRAY_LENGTH
* @since 2.7.0
*/
j$.MAX_PRETTY_PRINT_ARRAY_LENGTH = 50;
/**
* Maximum number of characters to display when pretty printing objects.
* Characters past this number will be ellipised.
* Characters past this number will be ellipised. The default value is 1000.
* @name jasmine.MAX_PRETTY_PRINT_CHARS
* @since 2.9.0
*/
j$.MAX_PRETTY_PRINT_CHARS = 1000;
/**
* Default number of milliseconds Jasmine will wait for an asynchronous spec to complete.
* While debugging tests, you may want to set this to a large
* number no bigger than 2147483647 so that `before` or `after` hooks do not run in the middle of an
* async test that you are stepping through in a debugger. The default value is 5000.
* @name jasmine.DEFAULT_TIMEOUT_INTERVAL
* @since 1.3.0
*/