Skip to content

Commit

Permalink
test: skip 3 tests in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
remy authored and Danny Grander committed Aug 4, 2016
1 parent 135787e commit 75d7cc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/analytics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var proxyquire = require('proxyquire').noPreserveCache();
var sinon = require('sinon');
var snyk = require('../lib');
var old;
var iswindows = require('os-name')().toLowerCase().indexOf('windows') === 0;

tap.beforeEach(function (done) {
old = snyk.config.get('disable-analytics');
Expand Down Expand Up @@ -67,7 +68,7 @@ test('bad command', function (t) {
});
});

test('test includes data', function (t) {
test('test includes data', { skip: iswindows }, function (t) {
var spy = sinon.spy();
process.argv = ['node', 'script.js', 'test', 'snyk-demo-app', '-q'];

Expand Down
5 changes: 3 additions & 2 deletions test/wizard-patch-generates-policy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var fs = require('fs');
var Promise = require('es6-promise').Promise; // jshint ignore:line
var exec = require('child_process').exec;
var vulns = require('./fixtures/debug-2.1.0-vuln.json').vulnerabilities;
var iswindows = require('os-name')().toLowerCase().indexOf('windows') === 0;

tap.beforeEach(done => {
policy.create().then(p => {
Expand All @@ -17,7 +18,7 @@ tap.beforeEach(done => {
});
});

test('patch via wizard produces policy (on debug@2.1.0)', function (t) {
test('patch via wizard produces policy (on debug@2.1.0)', { skip: iswindows }, function (t) {
var name = 'debug';
var version = '2.1.0';
var cwd = process.cwd();
Expand Down Expand Up @@ -63,7 +64,7 @@ test('patch via wizard produces policy (on debug@2.1.0)', function (t) {

});

test('patch via wizard produces policy (on openapi-node@3.0.3)', function (t) {
test('patch via wizard produces policy (on openapi-node@3.0.3)', { skip: iswindows }, function (t) {
var name = 'openapi-node';
var version = '3.0.3';
var cwd = process.cwd();
Expand Down

0 comments on commit 75d7cc1

Please sign in to comment.