Convert test/19-compose-utils.coffee to javascript

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-03-31 16:49:16 +01:00
parent 98e956831a
commit 70b0705551
2 changed files with 13 additions and 22 deletions

View File

@ -1,22 +0,0 @@
require('mocha')
{ expect } = require './lib/chai-config'
ComposeUtils = require('../src/compose/utils')
describe 'Composition utilities', ->
it 'Should correctly camel case the configuration', ->
config =
networks: [
'test',
'test2',
]
expect(ComposeUtils.camelCaseConfig(config)).to.deep.equal({
networks: [
'test'
'test2'
]
})

13
test/19-compose-utils.js Normal file
View File

@ -0,0 +1,13 @@
import { expect } from './lib/chai-config';
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'],
});
}));