This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,15 @@ describe('binding', function() {
43
43
} ) ;
44
44
45
45
describe ( 'on unsupported environment' , function ( ) {
46
+ var DefaultOptions = Constants . DefaultOptions ;
46
47
describe ( 'with an unsupported architecture' , function ( ) {
48
+ var arch = DefaultOptions . arch ;
47
49
beforeEach ( function ( ) {
48
- Object . defineProperty ( process , 'arch' , {
49
- value : 'foo' ,
50
- } ) ;
50
+ DefaultOptions . arch = 'foo' ;
51
51
} ) ;
52
52
53
53
afterEach ( function ( ) {
54
- Object . defineProperty ( process , 'arch' , {
55
- value : 'x64' ,
56
- } ) ;
54
+ DefaultOptions . arch = arch ;
57
55
} ) ;
58
56
59
57
it ( 'should error' , function ( ) {
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ process.env.NODESASS_COV ? require('../lib-cov') : require('../lib');
2
2
3
3
var assert = require ( 'assert' ) ,
4
4
sass = require ( '../lib/extensions' ) ,
5
- binding = require ( sass . getBinaryPath ( ) ) ;
5
+ Constants = require ( '../lib/constants' ) ,
6
+ binding = require ( sass . getBinaryPath ( Constants . DefaultOptions ) ) ;
6
7
7
8
describe ( 'lowlevel' , function ( ) {
8
9
it ( 'fail with options not an object' , function ( done ) {
You can’t perform that action at this time.
0 commit comments