2017-12-21 14:49:07 -07:00
|
|
|
'use strict'
|
|
|
|
|
2017-12-18 23:33:55 -07:00
|
|
|
const chai = require('chai')
|
|
|
|
const request = require('supertest')
|
2017-12-21 14:49:07 -07:00
|
|
|
.agent(require('../server'))
|
|
|
|
chai.use(
|
|
|
|
require('chai-http')
|
|
|
|
)
|
2017-12-18 23:33:55 -07:00
|
|
|
|
|
|
|
describe('Mapping', () => {
|
|
|
|
|
|
|
|
it('Displays demo map', async () => {
|
2017-12-21 14:49:07 -07:00
|
|
|
let res = await request.get('/map/demo')
|
2017-12-18 23:33:55 -07:00
|
|
|
chai.expect(res).to.have.status(200).to.be.html
|
|
|
|
})
|
|
|
|
|
|
|
|
// TODO: it('Shows own map', async () => {
|
2017-12-21 14:49:07 -07:00
|
|
|
// request.get('/map')
|
2017-12-18 23:33:55 -07:00
|
|
|
// .expect(200)
|
|
|
|
// .end(function(err,res){ done(); })
|
|
|
|
// })
|
|
|
|
|
|
|
|
// TODO: it('Sets own location', async () => {
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// TODO: it('Tracks own location', async () => {
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// TODO: it('Clears own location', async () => {
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// TODO: it('Deletes account', async () => {
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
2017-12-21 14:49:07 -07:00
|
|
|
})
|