"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "helpers/testSnippets.js" between
hoppscotch-2.0.0.tar.gz and hoppscotch-2.1.0.tar.gz

About: Hoppscotch is a light-weight, web based API development suite.

testSnippets.js  (hoppscotch-2.0.0):testSnippets.js  (hoppscotch-2.1.0)
skipping to change at line 13 skipping to change at line 13
name: "Response: Status code is 200", name: "Response: Status code is 200",
script: `\n\n// Check status code is 200 script: `\n\n// Check status code is 200
pw.test("Status code is 200", ()=> { pw.test("Status code is 200", ()=> {
pw.expect(pw.response.status).toBe(200); pw.expect(pw.response.status).toBe(200);
});`, });`,
}, },
{ {
name: "Response: Assert property from body", name: "Response: Assert property from body",
script: `\n\n// Check JSON response property script: `\n\n// Check JSON response property
pw.test("Check JSON response property", ()=> { pw.test("Check JSON response property", ()=> {
pw.expect(pw.response.method).toBe("GET"); pw.expect(pw.response.body.method).toBe("GET");
});`, });`,
}, },
{ {
name: "Status code: Status code is 2xx", name: "Status code: Status code is 2xx",
script: `\n\n// Check status code is 2xx script: `\n\n// Check status code is 2xx
pw.test("Status code is 2xx", ()=> { pw.test("Status code is 2xx", ()=> {
pw.expect(pw.response.status).toBeLevel2xx(); pw.expect(pw.response.status).toBeLevel2xx();
});`, });`,
}, },
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)