mirror of
https://github.com/flextype/flextype.git
synced 2025-08-01 10:50:27 +02:00
feat(tests): update postman collection
This commit is contained in:
@@ -58,10 +58,61 @@
|
||||
" pm.response.to.have.status(200);",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"title field exists and eq Foo\", function () {",
|
||||
"pm.test(\"verify title field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.title).to.eql(\"Foo\");",
|
||||
"});"
|
||||
" pm.expect(jsonData.hasOwnProperty('title')).to.be.true;",
|
||||
" pm.expect(jsonData.title).to.be.string;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify published_at field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('published_at')).to.be.true;",
|
||||
" pm.expect(Number.isInteger(jsonData.published_at)).to.be.true;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify published_by field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('published_by')).to.be.true;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify created_at field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('created_at')).to.be.true;",
|
||||
" pm.expect(Number.isInteger(jsonData.created_at)).to.be.true;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify created_by field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('created_by')).to.be.true;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify visibility field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('visibility')).to.be.true;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify visibility field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('visibility')).to.be.true;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify uuid field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('uuid')).to.be.true;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify slug field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('slug')).to.be.true;",
|
||||
" pm.expect(jsonData.title).to.be.string;",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"verify modified_at field\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.hasOwnProperty('modified_at')).to.be.true;",
|
||||
" pm.expect(Number.isInteger(jsonData.modified_at)).to.be.true;",
|
||||
"});",
|
||||
""
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -338,7 +389,7 @@
|
||||
],
|
||||
"variable": [
|
||||
{
|
||||
"id": "5aa9912d-1df7-4dce-8c6a-cd65ab966078",
|
||||
"id": "defc4d8a-5a3e-44a4-8c38-c5362cf690a9",
|
||||
"key": "entry_id",
|
||||
"value": ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user