mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-20 17:52:51 +00:00
Convert test/19-compose-utils.coffee to javascript
Change-type: patch
This commit is contained in:
parent
98e956831a
commit
70b0705551
@ -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
13
test/19-compose-utils.js
Normal 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'],
|
||||
});
|
||||
}));
|
Loading…
x
Reference in New Issue
Block a user