Skip to content

Commit c0c8ba4

Browse files
committed
verbose test for wget
1 parent bf3e22e commit c0c8ba4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎test/targets/wget.js‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ describe('wget', function () {
2929
done();
3030
});
3131

32+
it('should ask for verbose output', function (done) {
33+
var result = new HTTPSnippet(fixtures.simple).wget({
34+
short: true,
35+
indent: false,
36+
verbose: true
37+
});
38+
39+
result.should.be.a.String;
40+
result.should.eql('wget -v --method POST --header "Cookie: bar=baz" --header "Content-Type: application/json" --body-data "{\\"foo\\": \\"bar\\"}" -O - "http://httpconsole.com/debug"');
41+
42+
done();
43+
});
44+
3245
it('should use custom indentation', function (done) {
3346
var result = new HTTPSnippet(fixtures.simple).wget({
3447
indent: '@'

0 commit comments

Comments
 (0)