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

Commit

Permalink
Simplier test
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Apr 30, 2016
1 parent 0bf7f5b commit 063b954
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
clone_folder: c:\projects\node_modules\node-sass

init:
- ps: set-location -path c:\projects\node_modules\node-sass
- cmd: >-
subst s: c:\projects
- ps: set-location -path s:\node_modules\node-sass

cache:
- '%userprofile%\.node-gyp'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"coverage": "node scripts/coverage.js",
"install": "node scripts/install.js",
"postinstall": "node scripts/build.js",
"test": "node_modules/.bin/mocha test.js",
"test": "node_modules/.bin/mocha test2.js test3.js",
"build": "node scripts/build.js --force",
"prepublish": "not-in-install && node scripts/prepublish.js || in-install"
},
Expand Down
13 changes: 13 additions & 0 deletions test2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var assert = require('assert');

describe('native modules from subset drive', function() {
it('should not error', function() {
try {
require('s:\\node_modules\\node-sass\\vendor\\win32-ia32-48\\binding.node');
assert.ok(true);
} catch (e) {
console.log(e);
assert.ok(false);
}
});
});
13 changes: 13 additions & 0 deletions test3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var assert = require('assert');

describe('native modules from real drive', function() {
it('should not error', function() {
try {
require('c:\\projects\\node_modules\\node-sass\\vendor\\win32-ia32-48\\binding.node');
assert.ok(true);
} catch (e) {
console.log(e);
assert.ok(false);
}
});
});

0 comments on commit 063b954

Please sign in to comment.