Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
d6cd0134
Commit
d6cd0134
authored
May 12, 2016
by
Nick Schonning
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: Fix new-cap errors
Suppressed the ones coming from the Sass Types
parent
e6a24f1c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
coverage.js
scripts/coverage.js
+7
-9
api.js
test/api.js
+2
-0
No files found.
scripts/coverage.js
View file @
d6cd0134
...
@@ -7,20 +7,18 @@ var Mocha = require('mocha'),
...
@@ -7,20 +7,18 @@ var Mocha = require('mocha'),
path
=
require
(
'path'
),
path
=
require
(
'path'
),
mkdirp
=
require
(
'mkdirp'
),
mkdirp
=
require
(
'mkdirp'
),
coveralls
=
require
(
'coveralls'
),
coveralls
=
require
(
'coveralls'
),
Instrumenter
=
require
(
'istanbul'
).
Instrumenter
,
istanbul
=
require
(
'istanbul'
),
Report
=
require
(
'istanbul'
).
Report
,
sourcefiles
=
[
'index.js'
,
'extensions.js'
,
'render.js'
],
Collector
=
new
require
(
'istanbul'
).
Collector
,
summary
=
istanbul
.
Report
.
create
(
'text-summary'
),
sourcefiles
=
[
'index.js'
,
'extensions.js'
,
'render.js'
,
'errors.js'
],
lcov
=
istanbul
.
Report
.
create
(
'lcovonly'
,
{
dir
:
path
.
join
(
'coverage'
)
}),
summary
=
Report
.
create
(
'text-summary'
),
html
=
istanbul
.
Report
.
create
(
'html'
,
{
dir
:
path
.
join
(
'coverage'
,
'html'
)
});
lcov
=
Report
.
create
(
'lcovonly'
,
{
dir
:
path
.
join
(
'coverage'
)
}),
html
=
Report
.
create
(
'html'
,
{
dir
:
path
.
join
(
'coverage'
,
'html'
)
});
function
coverage
()
{
function
coverage
()
{
var
mocha
=
new
Mocha
();
var
mocha
=
new
Mocha
();
var
rep
=
function
(
runner
)
{
var
rep
=
function
(
runner
)
{
runner
.
on
(
'end'
,
function
(){
runner
.
on
(
'end'
,
function
(){
var
cov
=
global
.
__coverage__
,
var
cov
=
global
.
__coverage__
,
collector
=
new
Collector
();
collector
=
new
istanbul
.
Collector
();
if
(
cov
)
{
if
(
cov
)
{
mkdirp
(
path
.
join
(
'coverage'
,
'html'
),
function
(
err
)
{
mkdirp
(
path
.
join
(
'coverage'
,
'html'
),
function
(
err
)
{
if
(
err
)
{
throw
err
;
}
if
(
err
)
{
throw
err
;
}
...
@@ -41,7 +39,7 @@ function coverage() {
...
@@ -41,7 +39,7 @@ function coverage() {
}
}
});
});
};
};
var
instrumenter
=
new
Instrumenter
();
var
instrumenter
=
new
istanbul
.
Instrumenter
();
var
instrumentedfiles
=
[];
var
instrumentedfiles
=
[];
var
processfile
=
function
(
source
)
{
var
processfile
=
function
(
source
)
{
fs
.
readFile
(
path
.
join
(
'lib'
,
source
),
function
(
err
,
data
)
{
fs
.
readFile
(
path
.
join
(
'lib'
,
source
),
function
(
err
,
data
)
{
...
...
test/api.js
View file @
d6cd0134
/*eslint new-cap: ["error", {"capIsNewExceptions": ["Color"]}]*/
var
assert
=
require
(
'assert'
),
var
assert
=
require
(
'assert'
),
fs
=
require
(
'fs'
),
fs
=
require
(
'fs'
),
path
=
require
(
'path'
),
path
=
require
(
'path'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment