Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Nov 1, 2024
1 parent 4c18f2b commit 443dfb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/k6/tests/serviceowner/dialogSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function () {
let titleForLastItem = uuidv4();
let updatedAfter = (new Date()).toISOString(); // We use this on all tests to avoid clashing with unrelated dialogs
let defaultFilter = "?UpdatedAfter=" + updatedAfter;

describe('Arrange: Create some dialogs to test against', () => {

for (let i = 0; i < 20; i++) {
Expand Down Expand Up @@ -207,7 +207,9 @@ export default function () {
let r = getSO('dialogs/' + defaultFilter + '&EndUserId=' + invalidEndUserId + '&ServiceResource=' + auxResource);
expectStatusFor(r).to.equal(200);
expect(r, 'response').to.have.validJsonBody();
expect(r.json(), 'response json').not.to.have.property("items");
let response = r.json();
expect(response, 'response json').to.have.property("items");
expect(response.items, 'items').to.have.lengthOf(0);
})

describe("Cleanup", () => {
Expand Down

0 comments on commit 443dfb7

Please sign in to comment.