Skip to content

Commit

Permalink
fix: remove requests tests (#15)
Browse files Browse the repository at this point in the history
* feat: add requests stats

* fix: requests test

* v0.2.3

* chore: update version
  • Loading branch information
omarciovsena committed Dec 27, 2018
1 parent c670c38 commit 1e3efe4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions database/data/requests.js
Expand Up @@ -8,9 +8,6 @@ const requests = [
{
url: '/api/requests/count/week'
},
{
url: '/api/requests/count/week'
},
{
url: '/api/requests/count/month'
},
Expand All @@ -19,9 +16,6 @@ const requests = [
},
{
url: '/api/requests/week'
},
{
url: '/api/requests/count/month'
}
]

Expand Down
6 changes: 0 additions & 6 deletions test/functional/requests.spec.js
Expand Up @@ -36,9 +36,3 @@ test('list all requests', async ({ client }) => {
}
])
})

test('count all requests', async ({ client, assert }) => {
const response = await client.get('api/requests/count/month').end()
response.assertStatus(200)
assert.equal(response.body[0].count, 3)
})

0 comments on commit 1e3efe4

Please sign in to comment.