Created
September 15, 2016 15:41
-
-
Save aherve/4e9aaff12aab2ef3afdc576737c87756 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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