UNPKG

@mochify/mochify

Version:

Run mocha tests in headless browsers

22 lines (16 loc) 302 B
'use strict'; const util = require('util'); const { Syntetic } = require('./syntetic'); class Text extends Syntetic { constructor(text) { super(); this.text = text; } toString() { return this.text; } [util.inspect.custom]() { return this.text; } } exports.Text = Text;