Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit d59ac50

Browse files
committed
Update unit tests to compensate for the constants
1 parent 318217b commit d59ac50

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

test/binding.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,15 @@ describe('binding', function() {
4343
});
4444

4545
describe('on unsupported environment', function() {
46+
var DefaultOptions = Constants.DefaultOptions;
4647
describe('with an unsupported architecture', function() {
48+
var arch = DefaultOptions.arch;
4749
beforeEach(function() {
48-
Object.defineProperty(process, 'arch', {
49-
value: 'foo',
50-
});
50+
DefaultOptions.arch = 'foo';
5151
});
5252

5353
afterEach(function() {
54-
Object.defineProperty(process, 'arch', {
55-
value: 'x64',
56-
});
54+
DefaultOptions.arch = arch;
5755
});
5856

5957
it('should error', function() {

test/lowlevel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ process.env.NODESASS_COV ? require('../lib-cov') : require('../lib');
22

33
var assert = require('assert'),
44
sass = require('../lib/extensions'),
5-
binding = require(sass.getBinaryPath());
5+
Constants = require('../lib/constants'),
6+
binding = require(sass.getBinaryPath(Constants.DefaultOptions));
67

78
describe('lowlevel', function() {
89
it('fail with options not an object', function(done) {

0 commit comments

Comments
 (0)