@types/mochaccino
TypeScript icon, indicating that this package has built-in type declarations

1.2.10 • Public • Published

Installation

npm install --save @types/mochaccino

Summary

This package contains type definitions for mochaccino (https://github.com/pawelgalazka/mochaccino#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mochaccino.

index.d.ts

import * as Sinon from "sinon";
export interface Expect {
    not: Expect;
    toBe(arg: any): void;
    toContain(arg: any): void;
    toEqual(arg: any): void;
    toHaveBeenCalled(): void;
    toHaveBeenCalledWith(...arg: any[]): void;
    toHaveBeenCalledTimes(callCount: number): void;
    toBeDefined(): void;
    toBeUndefined(): void;
    toBeNull(): void;
    toBeTruthy(): void;
    toBeFalsy(): void;
    toBeLessThan(other: number): void;
    toBeGreaterThan(other: number): void;
    toThrow(): void;
    toThrowError(errType: any): void;
    toMatch(matchExpression: any): void;
}
export interface SpyProxy {
    and: SpyProxy;
    spyProxy: true;
    getSubject: () => Sinon.SinonStub;
    callThrough: () => void;
    returnValue: (obj: any) => void;
    callFake: (fake: (...args: any[]) => any) => void;
}
export interface Dom {
    exposedProperties: ["window", "navigator", "document"];
    create: () => void;
    destroy: () => void;
    clear: () => void;
}
export function expect(value: any): Expect;
export function spy(...config: any[]): (...args: any[]) => SpyProxy;
export const dom: Dom;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/sinon

Credits

These definitions were written by Thomas-P.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mochaccino

Weekly Downloads

3

Version

1.2.10

License

MIT

Unpacked Size

4.86 kB

Total Files

5

Last publish

Collaborators

  • types