smartstring/test/test.docker.both.ts

13 lines
464 B
TypeScript
Raw Normal View History

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 () => {
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');
});
2017-10-05 13:55:59 +00:00
tap.start();