storage-upload/test/server.test.js

23 lines
379 B
JavaScript
Raw Normal View History

2017-12-09 21:51:18 +00:00
import assert from 'assert-extended'
import * as server from './helper.server'
describe('Server', () => {
let client
beforeEach(() => {
client = server.createClient()
})
it('should run', () =>
assert.isFulfilled(
2017-12-09 22:55:25 +00:00
client.getAsync('/')
2017-12-09 21:51:18 +00:00
)
.then(data => {
assert.ok(data)
assert.ok(data.name)
assert.ok(data.version)
})
)
})