Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
15
my-app/node_modules/istanbul-lib-coverage/lib/percent.js
generated
vendored
Executable file
15
my-app/node_modules/istanbul-lib-coverage/lib/percent.js
generated
vendored
Executable file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
Copyright 2012-2015, Yahoo Inc.
|
||||
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
module.exports = function percent(covered, total) {
|
||||
let tmp;
|
||||
if (total > 0) {
|
||||
tmp = (1000 * 100 * covered) / total;
|
||||
return Math.floor(tmp / 10) / 100;
|
||||
} else {
|
||||
return 100.0;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue