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

23 lines
359 B
CoffeeScript
Raw Normal View History

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