Skip to content

Commit c72b170

Browse files
committed
Adds failing test
1 parent d74d461 commit c72b170

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/fixtures/%CD%

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
echo special

test/fixtures/%CD%.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
echo special

test/test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ extension\');', { mode: parseInt('0777', 8) });
140140
});
141141
});
142142

143+
it('should handle commands with names of environment variables', function (next) {
144+
buffered(method, __dirname + '/fixtures/%CD%', function (err, data, code) {
145+
expect(err).to.not.be.ok();
146+
expect(code).to.be(0);
147+
expect(data.trim()).to.equal('special');
148+
149+
next();
150+
});
151+
});
152+
143153
it('should handle arguments with quotes', function (next) {
144154
buffered(method, 'node', [
145155
__dirname + '/fixtures/echo',

0 commit comments

Comments
 (0)