smartstring/test/test.docker.both.ts
2023-08-18 13:12:25 +02:00

13 lines
464 B
TypeScript

import * as smartstring from '../ts/index.js';
import { tap, expect } from '@push.rocks/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).toEqual('sub.domain.tld');
expect(envObject.DEFAULT_HOST).toEqual('some.domain.com');
});
tap.start();