Skip to content

Commit

Permalink
test: fix path related assertions for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
darscan committed Dec 16, 2016
1 parent f67d324 commit a5c1b08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/acceptance/cli.acceptance.test.js
@@ -1,4 +1,5 @@
var test = require('tap-only');
var path = require('path');
var apiKey = '123456789';
var oldkey;
var oldendpoint;
Expand Down Expand Up @@ -158,8 +159,10 @@ test('`test monorepo --file=sub-ruby-app/Gemfile`', function(t) {
var files = req.body.files;
t.equal(req.method, 'POST', 'makes POST request');
t.match(req.url, '/vuln/rubygems', 'posts to correct url');
t.equal(req.body.targetFile, 'sub-ruby-app/Gemfile', 'specifies target');
t.equal(files.gemfile.name, 'sub-ruby-app/Gemfile', 'specifies name');
t.equal(req.body.targetFile, path.join('sub-ruby-app', 'Gemfile'),
'specifies target');
t.equal(files.gemfile.name, path.join('sub-ruby-app', 'Gemfile'),
'specifies name');
});
});

Expand Down

0 comments on commit a5c1b08

Please sign in to comment.