Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JSONResponse1={
- //
- "str":null,
- //
- }
- JSONResponse2={
- //
- "str":"string",
- //
- }
- const test = require('testdata');
- describe('test', () => {
- test.scenarios.foreach((x) => {
- beforeEach((done) => {
- options = {
- method: 'GET',
- json: true,
- url: x.url;
- }
- done();
- });
- it(x.title, (done) => {
- request(options, (error, response, body) => {
- expect(body.str).to.be.a('string');
- done();
- });
- console.log();
- done();
- });
- });
- });
Add Comment
Please, Sign In to add comment