@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
1 lines • 8.85 kB
JavaScript
export class TextualExpectation{static toBeArray="The `actual` value must be `array` type or an instance of `Array`.";static toBeArrayOfBigInt="The `actual` value must be `array` type or an instance of `Array` of `bigint`.";static toBeArrayOfBoolean="The `actual` value must be `array` type or an instance of `Array` of `boolean`.";static toBeArrayOfDate="The `actual` value must be `array` type or an instance of `Array` of `date`.";static toBeArrayOfDefined="The `actual` value must be `array` type or an instance of `Array` of defined.";static toBeArrayOfFalse="The `actual` value must be `array` type or an instance of `Array` of `false`.";static toBeArrayOfNull="The `actual` value must be `array` type or an instance of `Array` of `null`.";static toBeArrayOfNumber="The `actual` value must be `array` type or an instance of `Array` of `number`.";static toBeArrayOfRegExp="The `actual` value must be `array` type or an instance of `Array` of `regexp.";static toBeArrayOfString="The `actual` value must be `array` type or an instance of `Array` of `string`.";static toBeArrayOfSymbol="The `actual` value must be `array` type or an instance of `Array` of `symbol`.";static toBeArrayOfTrue="The `actual` value must be `array` type or an instance of `Array` of `true`.";static toBeArrayOfUndefined="The `actual` value must be `array` type or an instance of `Array` of `undefined`.";static toBeBigInt="The `actual` value must be a `bigint` type.";static toBeBoolean=`The \`actual\` value must be of a \`boolean\` type or an instance of \`${Boolean.name}\`.`;static toBeBooleanType="The `actual` value must be of a `boolean` type.";static toBeClass="The `actual` value must be a `class`.";static toBeCloseTo="The `actual` value must be within a specified `precision` of the `expected` actual.";static toBeDate="The `actual` value to be a `date`.";static toBeDefined="The `actual` value must be defined.";static toBeFalse="The `actual` value must be `false`.";static toBeFalsy="The `actual` value must be falsy.";static toBeFunction="The `actual` value must be `function`.";static toBeGreaterThan="The `actual` value to be greater than the `expected` value.";static toBeGreaterThanOrEqual="The `actual` value to be greater than or equal to the `expected` value.";static toBeInstance="The `actual` value to be an instance of `constructor`.";static toBeInstanceOf="The `actual` value must be an instance of `expected`.";static toBeInstanceOfArray=`The \`actual\` value must be an instance of an \`${Array.name}\`.`;static toBeInstanceOfBoolean=`The \`actual\` value must be an instance of \`${Boolean.name}\`.`;static toBeInstanceOfDate=`The \`actual\` value must be an instance of \`${Date.name}\`.`;static toBeInstanceOfError=`The \`actual\` value must be an instance of an \`${Error.name}\`.`;static toBeInstanceOfFunction=`The \`actual\` value must be an instance of a \`${Function.name}\`.`;static toBeInstanceOfMap=`The \`actual\` value must be an instance of a \`${Map.name}\`.`;static toBeInstanceOfNumber=`The \`actual\` value must be an instance of a \`${Number.name}\`.`;static toBeInstanceOfObject=`The \`actual\` value must be an instance of an \`${Object.name}\`.`;static toBeInstanceOfPromise=`The \`actual\` value must be an instance of \`${Promise.name}\`.`;static toBeInstanceOfRangeError=`The \`actual\` value must be an instance of \`${RangeError.name}\`.`;static toBeInstanceOfReferenceError=`The \`actual\` value must be an instance of \`${ReferenceError.name}\`.`;static toBeInstanceOfRegExp=`The \`actual\` value must be an instance of \`${RegExp.name}\`.`;static toBeInstanceOfSet=`The \`actual\` value must be an instance of \`${Set.name}\`.`;static toBeInstanceOfString=`The \`actual\` value must be an instance of a \`${String.name}\`.`;static toBeInstanceOfSyntaxError=`The \`actual\` value must be an instance of \`${SyntaxError.name}\`.`;static toBeInstanceOfTypeError=`The \`actual\` value must be an instance of \`${TypeError.name}\`.`;static toBeInstanceOfURIError=`The \`actual\` value must be an instance of \`${URIError.name}\`.`;static toBeInstanceOfWeakMap=`The \`actual\` value must be an instance of a \`${WeakMap.name}\`.`;static toBeInstanceOfWeakSet=`The \`actual\` value must be an instance of a \`${WeakSet.name}\`.`;static toBeKey="The `actual` value to be a `PropertyKey`.";static toBeLessThan="The `actual` value to be less than the `expected` value.";static toBeLessThanOrEqual="The `actual` value to be less than or equal to the `expected` value.";static toBeNaN="The `actual` value to be NaN (Not a Number).";static toBeNegativeInfinity="The `actual` value to be -Infinity (-infinity).";static toBeNull="The `actual` value must be `null`.";static toBeNumber=`The \`actual\` value to be a \`number\` type or an instance of a \`${Number.name}\`.`;static toBeNumberBetween=`The \`actual\` value to be a \`number\` type or an instance of \`${Number.name}\` between the range of \`min\` and \`max\`.`;static toBeNumberType="The `actual` value must be of a `number` type.";static toBeObject="The `actual` value must be of `object` type or an instance of `Object`.";static toBeObjectKey="The `actual` value must be of `object` type or an instance of `Object` with a given `key`.";static toBeObjectKeys="The `actual` value must be of `object` type or an instance of `Object` with given `keys`.";static toBeObjectKeyIn="The `actual` value must be of `object` type or an instance of `Object` with a given `key` in it(or its prototype chain).";static toBeObjectKeysIn="The `actual` value must be of `object` type or an instance of `Object` with given `keys` in it(or its prototype chain).";static toBeObjectSomeKeys="The `actual` value must be of `object` type or an instance of `Object` with some given `keys`.";static toBePending="Mark a spec as pending; expectation results will be ignored.";static toBePositiveInfinity="The `actual` value to be Infinity (infinity).";static toBeRegExp=`The \`actual\` value must be \`${RegExp.name}\`.`;static toBeRejected="Expect the `actual` value a promise to be rejected.";static toBeRejectedWith="Expect the `actual` value a promise to be rejected with a value equal to the expected; using deep equality comparison.";static toBeRejectedWithError="Expect the `actual` value a promise to be rejected with a value matched to the expected.";static toBeResolved="Expect the `actual` value a promise to be resolved.";static toBeResolvedTo="Expect the `actual` value a promise to be resolved to a value equal to the expected; using deep equality comparison.";static toBeString="The `actual` value must be a `string` type or an instance of a `String`.";static toBeStringIncludes="The `actual` value must be a `string` type or an instance of a `String` that includes the specified words/sentences.";static toBeStringIncludesSome="The `actual` value must be a `string` type or an instance of a `String` that includes some of the specified words/sentences.";static toBeStringOfLength="The `actual` value must be a `string` type or an instance of a `String` of the given `length`.";static toBeStringOfLengthBetween="The `actual` value must be a `string` type or an instance of a `String` of the length between the given `min` and `max`.";static toBeStringType="The `actual` value must be of a `string` type.";static toBeSymbol="The `actual` value must be a `symbol`.";static toBeTrue="The `actual` value must be a `boolean` type or an instance of `Boolean` equal to `true`.";static toBeTruthy="The `actual` value to be truthy.";static toBeUndefined="The `actual` value must be `undefined`.";static toContain="The `actual` value to contain a specific value.";static toEqual="The `actual` value to be equal to the `expected`; using deep equality comparison.";static toHaveBeenCalled="The `actual` value (a Spy) to have been called.";static toHaveBeenCalledBefore="The `actual` value (a Spy) to have been called before another Spy.";static toHaveBeenCalledOnceWith="The `actual` value (a Spy) to have been called exactly once; and exactly with the particular arguments.";static toHaveBeenCalledTimes="The `actual` value (a Spy) to have been called the specified number of times.";static toHaveBeenCalledWith="The `actual` (a Spy) to have been called with particular arguments at least once.";static toHaveClass="The `actual` value to be a DOM element that has the expected class.";static toHaveSize="The `actual` size to be equal to the expected; using array-like length or object keys size.";static toHaveSpyInteractions="The `actual` value (a SpyObj) spies to have been called.";static toMatch="The `actual` value to match a regular expression.";static toThrow="The `actual` value a function to throw something.";static toThrowError="The `actual` value a function to throw an Error.";static toThrowMatching="The `actual` value a function to throw something matching a predicate."}