UNPKG
@mochify/mochify
Version:
latest (1.0.1)
1.0.1
1.0.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Run mocha tests in headless browsers
github.com/mochify-js/mochify
@mochify/mochify
/
lib
/
dom
/
text.js
22 lines
(16 loc)
•
302 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'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
;