VariableData interface
Data about the variables in an expect statement.
Signature:
interface VariableData
Remarks
In practice, this is the expect
and actual
variables.
Example
// Given:
expect(5).to.not.equal("5");
// This would be the variable data:
const expectVariable: VariableData = {
value: "5",
type: "string"
};
const actualVariable: VariableData = {
value: 5,
type: "number"
}
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
string | (Optional) The type of this variable, as a string. | ||
unknown | The value of this variable. |