Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
133 lines
4.4 KiB
Text
133 lines
4.4 KiB
Text
import type nodeAssert from "node:assert";
|
|
export declare class AssertionError extends Error implements nodeAssert.AssertionError {
|
|
actual: unknown;
|
|
expected: unknown;
|
|
operator: string;
|
|
generatedMessage: boolean;
|
|
code: "ERR_ASSERTION";
|
|
constructor(options: {
|
|
message?: string
|
|
actual?: unknown
|
|
expected?: unknown
|
|
operator?: string
|
|
stackStartFn?: Function
|
|
});
|
|
}
|
|
/**
|
|
* Pure assertion tests whether a value is truthy, as determined
|
|
* by !!value.
|
|
* @param {...any} args
|
|
* @returns {void}
|
|
*/
|
|
export declare function ok(...args: unknown[]);
|
|
/**
|
|
* The equality assertion tests shallow, coercive equality with ==.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function equal(actual: unknown, expected: unknown, message?: string | Error): void;
|
|
/**
|
|
* The non-equality assertion tests for whether two objects are not
|
|
* equal with !=.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function notEqual(actual: unknown, expected: unknown, message?: string | Error);
|
|
/**
|
|
* The deep equivalence assertion tests a deep equality relation.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function deepEqual(actual: unknown, expected: unknown, message?: string | Error);
|
|
/**
|
|
* The deep non-equivalence assertion tests for any deep inequality.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error);
|
|
/**
|
|
* The deep strict equivalence assertion tests a deep strict equality
|
|
* relation.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function deepStrictEqual(actual: unknown, expected: unknown, message?: string | Error);
|
|
/**
|
|
* The deep strict non-equivalence assertion tests for any deep strict
|
|
* inequality.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error);
|
|
/**
|
|
* The strict equivalence assertion tests a strict equality relation.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function strictEqual(actual: unknown, expected: unknown, message?: string | Error);
|
|
/**
|
|
* The strict non-equivalence assertion tests for any strict inequality.
|
|
* @param {any} actual
|
|
* @param {any} expected
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error);
|
|
/**
|
|
* Expects the function `promiseFn` to throw an error.
|
|
*/
|
|
export declare function throws(promiseFn: () => any, ...args: unknown[]): void;
|
|
/**
|
|
* Expects `promiseFn` function or its value to reject.
|
|
*/
|
|
export declare function rejects(promiseFn: (() => Promise<unknown>) | Promise<unknown>, ...args: unknown[]): Promise<void>;
|
|
/**
|
|
* Asserts that the function `fn` does not throw an error.
|
|
*/
|
|
export declare function doesNotThrow(fn: () => any, ...args: unknown[]): void;
|
|
/**
|
|
* Expects `fn` or its value to not reject.
|
|
*/
|
|
export declare function doesNotReject(fn: (() => Promise<unknown>) | Promise<unknown>, ...args: unknown[]): Promise<void>;
|
|
/**
|
|
* Throws `value` if the value is not `null` or `undefined`.
|
|
* @param {any} err
|
|
* @returns {void}
|
|
*/
|
|
export declare function ifError(err: unknown);
|
|
/**
|
|
* Expects the `string` input to match the regular expression.
|
|
* @param {string} string
|
|
* @param {RegExp} regexp
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function match(string: string, regexp: RegExp, message?: string | Error);
|
|
/**
|
|
* Expects the `string` input not to match the regular expression.
|
|
* @param {string} string
|
|
* @param {RegExp} regexp
|
|
* @param {string | Error} [message]
|
|
* @returns {void}
|
|
*/
|
|
export declare function doesNotMatch(string: string, regexp: RegExp, message?: string | Error);
|
|
export declare function fail(actual: unknown, expected?: unknown, message?: string | Error, operator?: string, stackStartFn?: Function): never;
|
|
export declare const CallTracker: typeof nodeAssert.CallTracker;
|
|
export declare const partialDeepStrictEqual: unknown;
|
|
export declare const strict: unknown;
|
|
declare const _default;
|
|
export default _default;
|