balena-supervisor/test/19-compose-utils.coffee

23 lines
371 B
CoffeeScript
Raw Normal View History

2018-11-02 14:15:01 +00:00
require('mocha')
{ expect } = require './lib/chai-config'
2018-11-02 14:15:01 +00:00
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'
]
})