Skip to main content
Module

x/netzo/deno.d.ts>Deno.TestContext

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
interface Deno.TestContext
import { type Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { TestContext } = Deno;

Properties

name: string

The current test name.

origin: string

File Uri of the current test code.

optional
parent: TestContext

Parent test context.

Methods

step(t: TestStepDefinition): Promise<boolean>

Run a sub step of the parent test or step. Returns a promise that resolves to a boolean signifying if the step completed successfully. The returned promise never rejects unless the arguments are invalid. If the test was ignored the promise returns false.

step(name: string, fn: (t: TestContext) => void | Promise<void>): Promise<boolean>

Run a sub step of the parent test or step. Returns a promise that resolves to a boolean signifying if the step completed successfully. The returned promise never rejects unless the arguments are invalid. If the test was ignored the promise returns false.