fix(core): update

This commit is contained in:
2022-03-18 22:50:24 +01:00
parent 8b1769d65e
commit 1e6077ce34
25 changed files with 15372 additions and 7452 deletions

12
test/test.docker.both.ts Normal file
View File

@@ -0,0 +1,12 @@
import * as smartstring from '../ts/index.js';
import { tap, expect } from '@pushrocks/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();