meta {
  name: Get summary (today, filtered non-matching)
  type: http
  seq: 9
}

get {
  url: {{BASE_URL}}/api/summary?interval=today&project=wakapi&language=JavaScript
  body: none
  auth: bearer
}

params:query {
  interval: today
  project: wakapi
  language: JavaScript
}

auth:bearer {
  token: {{WRITEUSER_TOKEN}}
}

assert {
  res.status: eq 200
  res('user_id'): eq writeuser
}

tests {
  test("Correct summary data", function () {
      expect(res.body.projects).to.be.an('array').and.have.lengthOf(0);
      expect(res.body.languages).to.be.an('array').and.have.lengthOf(0);
      expect(res.body.editors).to.be.an('array').and.have.lengthOf(0);
      expect(res.body.operating_systems).to.be.an('array').and.have.lengthOf(0);
      expect(res.body.machines).to.be.an('array').and.have.lengthOf(0);
  });
}
