Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 31 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import chai from 'chai' |
||
2 | import path from 'path' |
||
3 | import sinonChai from'sinon-chai' |
||
4 | chai.use(sinonChai) |
||
5 | import sinon from 'sinon' |
||
6 | |||
7 | import { |
||
8 | coreUtils, |
||
9 | abeExtend, |
||
|
|||
10 | cmsData, |
||
11 | config |
||
12 | } from '../../../src/cli' |
||
13 | config.set({root: path.join(process.cwd(), 'test', 'fixtures')}) |
||
14 | |||
15 | describe('coreUtils.random', function() { |
||
16 | |||
17 | /** |
||
18 | * coreUtils.random.generateUniqueIdentifier |
||
19 | * |
||
20 | */ |
||
21 | it('coreUtils.random.generateUniqueIdentifier()', function() { |
||
22 | var result = coreUtils.random.generateUniqueIdentifier() |
||
23 | chai.expect(result).to.be.a('string') |
||
24 | chai.expect(result.length).to.equal(6) |
||
25 | |||
26 | var result2 = coreUtils.random.generateUniqueIdentifier(3) |
||
27 | chai.expect(result2).to.be.a('string') |
||
28 | chai.expect(result2.length).to.equal(3) |
||
29 | }); |
||
30 | |||
31 | }); |
||
32 |