mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-22 15:02:23 +00:00
4a2ac557ef
'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>
14 lines
357 B
TypeScript
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'],
|
|
});
|
|
}));
|