Interface SinonStatic

Index

Properties

Methods

Properties

public FakeXMLHttpRequest: SinonFakeXMLHttpRequest

public assert: SinonAssert

public clock: SinonFakeTimers

public config: SinonTestConfig

public createStubInstance: (constructor: any) => SinonStub

public expectation: SinonExpectationStatic

public fakeServer: SinonFakeServerStatic

public fakeServerWithClock: SinonFakeServerStatic

public format: (obj: any) => string

public log: (message: string) => void

public match: SinonMatch

public mock: SinonMockStatic

public sandbox: SinonSandboxStatic

public spy: SinonSpyStatic

public stub: SinonStubStatic

public useFakeTimers: SinonFakeTimersStatic

public useFakeXMLHttpRequest: SinonFakeXMLHttpRequestStatic

Methods

public restore(object: any)

Parameters

  • object: any

public test(fn: (...args: any[]) => any): SinonTestWrapper

Parameters

  • fn: (...args: any[]) => any

Returns

SinonTestWrapper

public testCase(tests: any): any

Parameters

  • tests: any

Returns

any