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
b0147a8c
Commit
b0147a8c
authored
Mar 21, 2017
by
Michael Mifsud
Committed by
GitHub
Mar 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1929 from xzyfer/support-node-8
Add Node 8 to the support versions lists
parents
f2f4b96e
7488f558
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
16 deletions
+6
-16
extensions.js
lib/extensions.js
+1
-0
binding.js
test/binding.js
+5
-16
No files found.
lib/extensions.js
View file @
b0147a8c
...
@@ -69,6 +69,7 @@ function getHumanNodeVersion(abi) {
...
@@ -69,6 +69,7 @@ function getHumanNodeVersion(abi) {
case
47
:
return
'Node.js 5.x'
;
case
47
:
return
'Node.js 5.x'
;
case
48
:
return
'Node.js 6.x'
;
case
48
:
return
'Node.js 6.x'
;
case
51
:
return
'Node.js 7.x'
;
case
51
:
return
'Node.js 7.x'
;
case
53
:
return
'Node.js 8.x'
;
default
:
return
false
;
default
:
return
false
;
}
}
}
}
...
...
test/binding.js
View file @
b0147a8c
...
@@ -10,7 +10,8 @@ var assert = require('assert'),
...
@@ -10,7 +10,8 @@ var assert = require('assert'),
describe
(
'binding'
,
function
()
{
describe
(
'binding'
,
function
()
{
describe
(
'missing error'
,
function
()
{
describe
(
'missing error'
,
function
()
{
it
(
'should be useful'
,
function
()
{
it
(
'should be useful'
,
function
()
{
process
.
env
.
SASS_BINARY_NAME
=
'Linux-x64-48'
;
process
.
env
.
SASS_BINARY_NAME
=
'unknown-x64-48'
;
assert
.
throws
(
assert
.
throws
(
function
()
{
binding
(
etx
);
},
function
()
{
binding
(
etx
);
},
function
(
err
)
{
function
(
err
)
{
...
@@ -42,11 +43,7 @@ describe('binding', function() {
...
@@ -42,11 +43,7 @@ describe('binding', function() {
describe('
on
unsupported
environment
', function() {
describe('
on
unsupported
environment
', function() {
describe('
with
an
unsupported
architecture
', function() {
describe('
with
an
unsupported
architecture
', function() {
var prevValue;
beforeEach(function() {
beforeEach(function() {
prevValue = process.arch;
Object.defineProperty(process, '
arch
', {
Object.defineProperty(process, '
arch
', {
value: '
foo
',
value: '
foo
',
});
});
...
@@ -54,7 +51,7 @@ describe('binding', function() {
...
@@ -54,7 +51,7 @@ describe('binding', function() {
afterEach(function() {
afterEach(function() {
Object.defineProperty(process, '
arch
', {
Object.defineProperty(process, '
arch
', {
value:
prevValue
,
value:
'
x64
'
,
});
});
});
});
...
@@ -74,11 +71,7 @@ describe('binding', function() {
...
@@ -74,11 +71,7 @@ describe('binding', function() {
});
});
describe('
with
an
unsupported
platform
', function() {
describe('
with
an
unsupported
platform
', function() {
var prevValue;
beforeEach(function() {
beforeEach(function() {
prevValue = process.platform;
Object.defineProperty(process, '
platform
', {
Object.defineProperty(process, '
platform
', {
value: '
bar
',
value: '
bar
',
});
});
...
@@ -86,7 +79,7 @@ describe('binding', function() {
...
@@ -86,7 +79,7 @@ describe('binding', function() {
afterEach(function() {
afterEach(function() {
Object.defineProperty(process, '
platform
', {
Object.defineProperty(process, '
platform
', {
value:
prevValue
,
value:
'
darwin
'
,
});
});
});
});
...
@@ -106,11 +99,7 @@ describe('binding', function() {
...
@@ -106,11 +99,7 @@ describe('binding', function() {
});
});
describe('
with
an
unsupported
runtime
', function() {
describe('
with
an
unsupported
runtime
', function() {
var prevValue;
beforeEach(function() {
beforeEach(function() {
prevValue = process.versions.modules;
Object.defineProperty(process.versions, '
modules
', {
Object.defineProperty(process.versions, '
modules
', {
value: '
baz
',
value: '
baz
',
});
});
...
@@ -118,7 +107,7 @@ describe('binding', function() {
...
@@ -118,7 +107,7 @@ describe('binding', function() {
afterEach(function() {
afterEach(function() {
Object.defineProperty(process.versions, '
modules
', {
Object.defineProperty(process.versions, '
modules
', {
value:
prevValue
,
value:
51
,
});
});
});
});
...
...
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