apeman-service-api
Version:
Apeman service for API access.
33 lines (23 loc) • 606 B
JavaScript
/**
* Test case for apApiService.
* Runs with mocha.
*/
const ApApiService = require('../lib/ap_api_service.js')
const apemanstore = require('apemanstore')
const assert = require('assert')
const co = require('co')
describe('ap-api-service', function () {
this.timeout(3000)
before(() => co(function * () {
}))
after(() => co(function * () {
}))
it('Do service', () => co(function * () {
let store = apemanstore()
let service = new ApApiService(store)
console.log(service.url('/foo'))
assert.ok(service)
}))
})
/* global describe, before, after, it */