Skip to content

Commit d05c6ac

Browse files
committed
remove old tests
1 parent ca66ce7 commit d05c6ac

File tree

5 files changed

+58
-141
lines changed

5 files changed

+58
-141
lines changed
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,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-
});
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+
// });

src/reducers/page-position/position.spec.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/reducers/reducer.spec.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/reducers/route/route.spec.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import {expect} from 'chai';
2-
import * as Action from '../../../lib/actions';
3-
import {reducer} from '../../../lib/_base';
4-
5-
describe('route', () => {
6-
7-
describe('ROUTE_SET', () => {
8-
it('changes the store path', () => {
9-
const action: Action = Action.routeSet('page');
10-
expect(reducer({}, action).route).to.equal('page');
11-
});
12-
13-
it('updates an existing store path', () => {
14-
const state = {route: 'page'};
15-
const action: Action = Action.routeSet('progress');
16-
expect(reducer(state, action).route).to.equal('progress');
17-
});
18-
});
19-
20-
});
1+
// import {expect} from 'chai';
2+
// import * as Action from '../../../lib/actions';
3+
// import {reducer} from '../../../lib/_base';
4+
//
5+
// describe('route', () => {
6+
//
7+
// describe('ROUTE_SET', () => {
8+
// it('changes the store path', () => {
9+
// const action: Action = Action.routeSet('page');
10+
// expect(reducer({}, action).route).to.equal('page');
11+
// });
12+
//
13+
// it('updates an existing store path', () => {
14+
// const state = {route: 'page'};
15+
// const action: Action = Action.routeSet('progress');
16+
// expect(reducer(state, action).route).to.equal('progress');
17+
// });
18+
// });
19+
//
20+
// });

src/store/store.spec.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)