From 063b954bf4d7da7ec2445852ee1113f792e687ac Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sun, 1 May 2016 03:55:19 +1000 Subject: [PATCH] Simplier test --- appveyor.yml | 4 +++- package.json | 2 +- test2.js | 13 +++++++++++++ test3.js | 13 +++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 test2.js create mode 100644 test3.js diff --git a/appveyor.yml b/appveyor.yml index 6e23475c7..e225c2867 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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' diff --git a/package.json b/package.json index afb3a7f62..0994a2707 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/test2.js b/test2.js new file mode 100644 index 000000000..66630bd21 --- /dev/null +++ b/test2.js @@ -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); + } + }); +}); \ No newline at end of file diff --git a/test3.js b/test3.js new file mode 100644 index 000000000..465b27f3b --- /dev/null +++ b/test3.js @@ -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); + } + }); +}); \ No newline at end of file