Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method TestDoubleBuilder.prototype.addOriginalProperty
import { TestDoubleBuilder } from "https://deno.land/x/rhum@v2.1.0-rc.1/src/test_double_builder.ts";

Add an original object's property to the test double.

Type Parameters

TestDoubleInterface

Parameters

original: OriginalClass

The original object containing the property.

The test double object receiving the property.

property: string

The name of the property -- retrievable via testDouble[property].