2022-03-18 21:50:24 +00:00
|
|
|
import * as smartstring from '../ts/index.js';
|
2023-08-18 11:12:25 +00:00
|
|
|
import { tap, expect } from '@push.rocks/tapbundle';
|
2017-10-05 13:55:59 +00:00
|
|
|
|
|
|
|
// Docker
|
|
|
|
tap.test('expect create a Env Object', async () => {
|
2018-07-21 12:37:39 +00:00
|
|
|
let envStringArray = ['VIRTUAL_HOST=sub.domain.tld', 'DEFAULT_HOST=some.domain.com'];
|
|
|
|
let envObject: any = smartstring.docker.makeEnvObject(envStringArray);
|
2022-03-18 21:50:24 +00:00
|
|
|
expect(envObject.VIRTUAL_HOST).toEqual('sub.domain.tld');
|
|
|
|
expect(envObject.DEFAULT_HOST).toEqual('some.domain.com');
|
2018-07-21 12:37:39 +00:00
|
|
|
});
|
2017-10-05 13:55:59 +00:00
|
|
|
|
2018-07-21 12:37:39 +00:00
|
|
|
tap.start();
|