Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd4de92

Browse files
committed
Clean up nyc output so Travis passes on node 6
1 parent2292432 commitbd4de92

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

‎tap-snapshots/test-run.js-TAP.test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ ok 3 - 3.test.js # {time}
6262
6363
1..3
6464
# {time}
65-
----------|----------|----------|----------|----------|----------------|
66-
File |% Stmts | % Branch |% Funcs |% Lines |Uncovered Lines |
67-
----------|----------|----------|----------|----------|----------------|
68-
All files |100 |100 |100 |100 | |
69-
ok.js |100 |100 |100 |100 | |
70-
----------|----------|----------|----------|----------|----------------|
65+
-|-|-|-|-|-|
66+
File|% Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
67+
-|-|-|-|-|-|
68+
All files | 100 | 100 | 100 | 100 | |
69+
ok.js|100 | 100 | 100 | 100 | |
70+
-|-|-|-|-|-|
7171
7272
`
7373

@@ -87,12 +87,12 @@ ok 2 - 2.test.js # {time}
8787
8888
1..2
8989
# {time}
90-
----------|----------|----------|----------|----------|----------------|
91-
File |% Stmts | % Branch |% Funcs |% Lines |Uncovered Lines |
92-
----------|----------|----------|----------|----------|----------------|
93-
All files |75 |75 |100 |75 | |
94-
ok.js |75 |75 |100 |75 | 6 |
95-
----------|----------|----------|----------|----------|----------------|
90+
-|-|-|-|-|-|
91+
File|% Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
92+
-|-|-|-|-|-|
93+
All files | 75 | 75 | 100 | 75 | |
94+
ok.js|75 | 75 | 100 | 75 | 6 |
95+
-|-|-|-|-|-|
9696
9797
`
9898

‎test/run.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ delete process.env.TAP_BAIL
2121
deleteprocess.env.TAP_COLORS
2222
deleteprocess.env.TAP_TIMEOUT
2323

24-
constclean=require('./clean-stacks.js')
24+
constcleanStacks=require('./clean-stacks.js')
25+
// also clean up NYC output a bit, because the line lengths
26+
// in the text report can vary on different platforms.
27+
constclean=string=>cleanStacks(string)
28+
.replace(/uncoveredline(#)?s/i,'Uncovered Lines')
29+
.replace(/+\|/g,' |')
30+
.replace(/\|+/g,'| ')
31+
.replace(/-+\|/g,'-|')
32+
.replace(/\|-+/g,'|-')
2533

2634
construn=(args,options,cb)=>{
2735
if(options&&options.env)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp