smartstring/test/test.docker.ts

13 lines
445 B
TypeScript
Raw Normal View History

2017-10-05 13:55:59 +00:00
import * as smartstring from '../ts/index'
import { tap, expect } from 'tapbundle'
// Docker
tap.test('expect create a Env Object', async () => {
let envStringArray = [ 'VIRTUAL_HOST=sub.domain.tld', 'DEFAULT_HOST=some.domain.com' ]
let envObject: any = smartstring.docker.makeEnvObject(envStringArray)
expect(envObject.VIRTUAL_HOST).to.equal('sub.domain.tld')
expect(envObject.DEFAULT_HOST).to.equal('some.domain.com')
})
tap.start()