UNPKG

636 BJavaScriptView Raw
1/**
2 * Test case for apService.
3 * Runs with mocha.
4 */
5'use strict'
6
7const ApService = require('../lib/ap_service.js')
8const { createStore } = require('redux')
9const reducer = require('../lib/reducer')
10const assert = require('assert')
11const co = require('co')
12
13describe('ap-service', function () {
14 this.timeout(3000)
15
16 before(() => co(function * () {
17
18 }))
19
20 after(() => co(function * () {
21
22 }))
23
24 it('Demo service', () => co(function * () {
25 let store = createStore(reducer)
26 let service = new ApService(store)
27 assert.ok(service)
28 assert.ok(!service.get('foo'))
29
30 }))
31})
32
33/* global describe, before, after, it */