|
1 |
| -import {expect} from 'chai'; |
2 |
| -import {parseParams} from '../../../lib/reducers/editor-actions/parser'; |
3 |
| - |
4 |
| -describe('parseBreaks', function() { |
5 |
| - |
6 |
| - describe('getParams', function() { |
7 |
| - it('should return the same string in an array if only one param', function () { |
8 |
| - let params = 'first'; |
9 |
| - let breaks = parseParams.getParams(params); |
10 |
| - expect(breaks).to.deep.equal(['first']); |
11 |
| - }); |
12 |
| - |
13 |
| - it('should return params in a simple string', function() { |
14 |
| - let params = 'first, second, third'; |
15 |
| - let breaks = parseParams.getParams(params); |
16 |
| - expect(breaks).to.deep.equal(['first', 'second', 'third']); |
17 |
| - }); |
18 |
| - |
19 |
| - it('should ignore breaks within an object', function() { |
20 |
| - let params = '{ a: 1, b: 2 }, second, third'; |
21 |
| - let breaks = parseParams.getParams(params); |
22 |
| - expect(breaks).to.deep.equal(['{ a: 1, b: 2 }', 'second', 'third']); |
23 |
| - }); |
24 |
| - |
25 |
| - it('should ignore breaks within an array', function() { |
26 |
| - let params = '[ a: 1, b: 2 ], second, third'; |
27 |
| - let breaks = parseParams.getParams(params); |
28 |
| - expect(breaks).to.deep.equal(['[ a: 1, b: 2 ]', 'second', 'third']); |
29 |
| - }); |
30 |
| - |
31 |
| - it('should ignore breaks within brackets', function() { |
32 |
| - let params = 'function (a, b) {}, second, third'; |
33 |
| - let breaks = parseParams.getParams(params); |
34 |
| - expect(breaks).to.deep.equal(['function (a, b) {}', 'second', 'third']); |
35 |
| - }); |
36 |
| - }); |
37 |
| - |
38 |
| -}); |
| 1 | +// import {expect} from 'chai'; |
| 2 | +// import {parseParams} from '../../../lib/reducers/editor-actions/parser'; |
| 3 | +// |
| 4 | +// describe('parseBreaks', function() { |
| 5 | +// |
| 6 | +// describe('getParams', function() { |
| 7 | +// it('should return the same string in an array if only one param', function () { |
| 8 | +// let params = 'first'; |
| 9 | +// let breaks = parseParams.getParams(params); |
| 10 | +// expect(breaks).to.deep.equal(['first']); |
| 11 | +// }); |
| 12 | +// |
| 13 | +// it('should return params in a simple string', function() { |
| 14 | +// let params = 'first, second, third'; |
| 15 | +// let breaks = parseParams.getParams(params); |
| 16 | +// expect(breaks).to.deep.equal(['first', 'second', 'third']); |
| 17 | +// }); |
| 18 | +// |
| 19 | +// it('should ignore breaks within an object', function() { |
| 20 | +// let params = '{ a: 1, b: 2 }, second, third'; |
| 21 | +// let breaks = parseParams.getParams(params); |
| 22 | +// expect(breaks).to.deep.equal(['{ a: 1, b: 2 }', 'second', 'third']); |
| 23 | +// }); |
| 24 | +// |
| 25 | +// it('should ignore breaks within an array', function() { |
| 26 | +// let params = '[ a: 1, b: 2 ], second, third'; |
| 27 | +// let breaks = parseParams.getParams(params); |
| 28 | +// expect(breaks).to.deep.equal(['[ a: 1, b: 2 ]', 'second', 'third']); |
| 29 | +// }); |
| 30 | +// |
| 31 | +// it('should ignore breaks within brackets', function() { |
| 32 | +// let params = 'function (a, b) {}, second, third'; |
| 33 | +// let breaks = parseParams.getParams(params); |
| 34 | +// expect(breaks).to.deep.equal(['function (a, b) {}', 'second', 'third']); |
| 35 | +// }); |
| 36 | +// }); |
| 37 | +// |
| 38 | +// }); |
0 commit comments