@types/nodeunit

  • Version 0.0.35
  • Published
  • 6.71 kB
  • No dependencies
  • MIT license

Install

npm i @types/nodeunit
yarn add @types/nodeunit
pnpm add @types/nodeunit

Overview

TypeScript definitions for nodeunit

Index

Variables

variable testCase

var testCase: ITestCase;

    Interfaces

    interface ICallbackFunction

    interface ICallbackFunction {}

      call signature

      (err?: any): void;

        interface ITestBody

        interface ITestBody {}

          call signature

          (callback: Test): void;

            interface ITestCase

            interface ITestCase {}

              call signature

              (testCase: { [property: string]: ITestBody | ITestGroup | void }): void;

                interface ITestGroup

                interface ITestGroup {}

                  property setUp

                  setUp?: ((callback: ICallbackFunction) => void) | undefined;
                  • The setUp function is run before each test

                  property tearDown

                  tearDown?: ((callback: ICallbackFunction) => void) | undefined;
                  • The tearDown function is run after each test calls test.done()

                  index signature

                  [property: string]:
                  | ITestGroup
                  | ITestBody
                  | ((callback: ICallbackFunction) => void)
                  | undefined;

                    interface Test

                    interface Test {}

                      property done

                      done: ICallbackFunction;

                        method assert

                        assert: (value: any, message: string) => void;

                          method deepEqual

                          deepEqual: (actual: any, expected: any, message?: string) => void;

                            method doesNotThrow

                            doesNotThrow: (block: any, error?: any, message?: string) => void;

                              method equal

                              equal: (actual: any, expected: any, message?: string) => void;

                                method equals

                                equals: (actual: any, expected: any, message?: string) => void;

                                  method expect

                                  expect: (num: number) => void;

                                    method fail

                                    fail: (actual: any, expected: any, message: string, operator: string) => void;

                                      method ifError

                                      ifError: (value: any) => void;

                                        method notDeepEqual

                                        notDeepEqual: (actual: any, expected: any, message?: string) => void;

                                          method notEqual

                                          notEqual: (actual: any, expected: any, message?: string) => void;

                                            method notStrictEqual

                                            notStrictEqual: (actual: any, expected: any, message?: string) => void;

                                              method ok

                                              ok: (value: any, message?: string) => void;

                                                method same

                                                same: (actual: any, expected: any, message?: string) => void;

                                                  method strictEqual

                                                  strictEqual: (actual: any, expected: any, message?: string) => void;

                                                    method throws

                                                    throws: (block: any, error?: any, message?: string) => void;

                                                      Package Files (1)

                                                      Dependencies (0)

                                                      No dependencies.

                                                      Dev Dependencies (0)

                                                      No dev dependencies.

                                                      Peer Dependencies (0)

                                                      No peer dependencies.

                                                      Badge

                                                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/nodeunit.

                                                      • Markdown
                                                        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/nodeunit)
                                                      • HTML
                                                        <a href="https://www.jsdocs.io/package/@types/nodeunit"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>