UNPKG

526 BJavaScriptView Raw
1/**
2 * Test case for create.
3 * Runs with mocha.
4 */
5'use strict'
6
7const create = require('../lib/create.js')
8const assert = require('assert')
9const co = require('co')
10
11describe('create', function () {
12 this.timeout(3000)
13
14 before(() => co(function * () {
15
16 }))
17
18 after(() => co(function * () {
19
20 }))
21
22 it('Create', () => co(function * () {
23 let client = create('/foo/bar')
24 let client2 = client.of('baz')
25 assert.equal(client2.baseUrl, '/foo/bar/scoped/baz')
26 }))
27})
28
29/* global describe, before, after, it */