forked from postmanlabs/postman-code-generators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewman.test.js
27 lines (22 loc) · 849 Bytes
/
newman.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var runNewmanTest = require('../../../../test/codegen/newman/newmanTestUtil').runNewmanTest,
convert = require('../../lib/index').convert;
describe('Convert for different types of request', function () {
var options = {indentCount: 2, indentType: 'Space'},
testConfig = {
compileScript: null,
runScript: 'node run.js',
fileName: 'run.js',
headerSnippet: '/* eslint-disable */\n'
};
runNewmanTest(convert, options, testConfig);
describe('Convert for request incorporating ES6 features', function () {
var options = {indentCount: 2, indentType: 'Space', ES6_enabled: true},
testConfig = {
compileScript: null,
runScript: 'node run.js',
fileName: 'run.js',
headerSnippet: '/* eslint-disable */\n'
};
runNewmanTest(convert, options, testConfig);
});
});