Skip to content

Commit

Permalink
[meta] finish spaces -> tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 22, 2022
1 parent 4399c97 commit 8a62fc5
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 53 deletions.
8 changes: 6 additions & 2 deletions index.js
Expand Up @@ -25,8 +25,12 @@ module.exports = function (opts) {
tap.on('comment', function (comment) {
if (comment === 'fail 0') { return; } // a mocha thing

if (test && test.ok && test.assertions.length === 0
&& (/^(tests|pass)\s+\d+$/).test(test.name)) {
if (
test
&& test.ok
&& test.assertions.length === 0
&& (/^(tests|pass)\s+\d+$/).test(test.name)
) {
out.push('\r' + trim(test.name));
} else if (test && test.ok) {
var s = updateName(test.offset + 1, '✓ ' + test.name, 32);
Expand Down
84 changes: 42 additions & 42 deletions package.json
@@ -1,46 +1,46 @@
{
"name": "faucet",
"version": "0.0.1",
"description": "human-readable TAP summarizer",
"main": "index.js",
"bin": {
"faucet": "bin/cmd.js"
},
"scripts": {
"name": "faucet",
"version": "0.0.1",
"description": "human-readable TAP summarizer",
"main": "index.js",
"bin": {
"faucet": "bin/cmd.js"
},
"scripts": {
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint"
},
"dependencies": {
"defined": "^0.0.0",
"duplexer": "^0.1.2",
"minimist": "^1.2.6",
"npm-which": "^1.0.2",
"sprintf-js": "^1.1.2",
"tap-parser": "^0.4.3",
"tape": "^5.6.1",
"through2": "^0.2.3"
},
"repository": {
"type": "git",
"url": "git://github.com/substack/faucet.git"
},
"homepage": "https://github.com/substack/faucet",
"keywords": [
"tap",
"human",
"test",
"anything",
"protocol",
"pretty"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT",
"devDependencies": {
"@ljharb/eslint-config": "^21.0.0",
"eslint": "=8.8.0"
}
},
"dependencies": {
"defined": "^0.0.0",
"duplexer": "^0.1.2",
"minimist": "^1.2.6",
"npm-which": "^1.0.2",
"sprintf-js": "^1.1.2",
"tap-parser": "^0.4.3",
"tape": "^5.6.1",
"through2": "^0.2.3"
},
"repository": {
"type": "git",
"url": "git://github.com/substack/faucet.git"
},
"homepage": "https://github.com/substack/faucet",
"keywords": [
"tap",
"human",
"test",
"anything",
"protocol",
"pretty"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT",
"devDependencies": {
"@ljharb/eslint-config": "^21.0.0",
"eslint": "=8.8.0"
}
}
18 changes: 9 additions & 9 deletions readme.markdown
Expand Up @@ -47,15 +47,15 @@ a `test.js` like:
var test = require('tape');

test('beep boop', function (t) {
t.plan(2);
t.equal(1 + 1, 2);
setTimeout(function () {
t.deepEqual(
'ABC'.toLowerCase().split(''),
['a','b','c']
);
});
t.plan(2);

t.equal(1 + 1, 2);
setTimeout(function () {
t.deepEqual(
'ABC'.toLowerCase().split(''),
['a','b','c']
);
});
});
```

Expand Down

0 comments on commit 8a62fc5

Please sign in to comment.