1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/helpers/utils/common.util.test.js
Whymarrh Whitby c1e3c229bc
Fix import/order issues (#9239)
See [`import/order`](https://eslint.org/docs/rules/import/order) for more information.

This change enables `import/order` and fixes the issues raised by the rule.
2020-08-18 16:48:25 -02:30

28 lines
636 B
JavaScript

import assert from 'assert'
import * as utils from './common.util'
describe('Common utils', function () {
describe('camelCaseToCapitalize', function () {
it('should return a capitalized string from a camel-cased string', function () {
const tests = [
{
test: undefined,
expected: '',
},
{
test: '',
expected: '',
},
{
test: 'thisIsATest',
expected: 'This Is A Test',
},
]
tests.forEach(({ test, expected }) => {
assert.equal(utils.camelCaseToCapitalize(test), expected)
})
})
})
})