balena-supervisor/test/19-compose-utils.coffee
Cameron Diver 5537ae4e2e
fix: Correctly handle array based network definitions for service
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-08 11:29:32 +01:00

23 lines
362 B
CoffeeScript

require('mocha');
{ expect } = require('chai');
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'
]
})