Skip to content

Instantly share code, notes, and snippets.

@aherve
Created September 15, 2016 15:41
Show Gist options
  • Select an option

  • Save aherve/4e9aaff12aab2ef3afdc576737c87756 to your computer and use it in GitHub Desktop.

Select an option

Save aherve/4e9aaff12aab2ef3afdc576737c87756 to your computer and use it in GitHub Desktop.
it('returns a new view', async function () {
const t = await request.get('/api/views/await')
expect(t.status).to.equal(200)
expect(t.body).to.have.property('lastVisit')
expect(t.body).to.have.property('count', 1)
})
it('creates a view', async function () {
expect(await View.count({})).to.equal(1)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment