Last change
on this file was
484,
checked in by hendrikvanantwerpen, 11 years ago
|
Commit node_modules, to make checkouts and builds more deterministic.
|
File size:
603 bytes
|
Line | |
---|
1 | |
---|
2 | /** |
---|
3 | * Module dependencies. |
---|
4 | */ |
---|
5 | |
---|
6 | var Base = require('./base'); |
---|
7 | |
---|
8 | /** |
---|
9 | * Expose `Min`. |
---|
10 | */ |
---|
11 | |
---|
12 | exports = module.exports = Min; |
---|
13 | |
---|
14 | /** |
---|
15 | * Initialize a new `Min` minimal test reporter (best used with --watch). |
---|
16 | * |
---|
17 | * @param {Runner} runner |
---|
18 | * @api public |
---|
19 | */ |
---|
20 | |
---|
21 | function Min(runner) { |
---|
22 | Base.call(this, runner); |
---|
23 | |
---|
24 | runner.on('start', function(){ |
---|
25 | // clear screen |
---|
26 | process.stdout.write('\u001b[2J'); |
---|
27 | // set cursor position |
---|
28 | process.stdout.write('\u001b[1;3H'); |
---|
29 | }); |
---|
30 | |
---|
31 | runner.on('end', this.epilogue.bind(this)); |
---|
32 | } |
---|
33 | |
---|
34 | /** |
---|
35 | * Inherit from `Base.prototype`. |
---|
36 | */ |
---|
37 | |
---|
38 | Min.prototype.__proto__ = Base.prototype; |
---|
Note: See
TracBrowser
for help on using the repository browser.