balena-supervisor/test/19-compose-utils.spec.ts
Christina Wang 4a2ac557ef
Remove mz, mkdirp, body-parser dependencies
'mz' can be safely replaced with fs.promises
and util.promisify for faster native methods.
'mkdirp' after Node v8 uses native fs.mkdir, thus
is redundant. 'body-parser' is deprecated and
contained within express v4.x.

Closes: #1567
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-04-28 07:20:15 +09:00

14 lines
357 B
TypeScript

import { expect } from 'chai';
import * as ComposeUtils from '../src/compose/utils';
describe('Composition utilities', () =>
it('Should correctly camel case the configuration', function () {
const config = {
networks: ['test', 'test2'],
};
expect(ComposeUtils.camelCaseConfig(config)).to.deep.equal({
networks: ['test', 'test2'],
});
}));