Skip to content

Commit

Permalink
fixing existing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Sep 7, 2017
1 parent 804bde3 commit 9b0664a
Show file tree
Hide file tree
Showing 29 changed files with 2,874 additions and 2,969 deletions.
3 changes: 2 additions & 1 deletion src/fixtures/vislib/mock_data/date_histogram/_columns.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import moment from 'moment';

export default {
'columns': [
'split': 'columns',
'charts': [
{
'label': '200: response',
'xAxisLabel': '@timestamp per 30 sec',
Expand Down
3 changes: 2 additions & 1 deletion src/fixtures/vislib/mock_data/date_histogram/_rows.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import moment from 'moment';

export default {
'rows': [
'split': 'rows',
'charts': [
{
'label': '0.0-1000.0: bytes',
'xAxisLabel': '@timestamp per 30 sec',
Expand Down
294 changes: 148 additions & 146 deletions src/fixtures/vislib/mock_data/date_histogram/_series.js
Original file line number Diff line number Diff line change
@@ -1,151 +1,153 @@
import moment from 'moment';

export default {
'label': '',
'xAxisLabel': '@timestamp per 30 sec',
'ordered': {
'date': true,
'min': 1411761457636,
'max': 1411762357636,
'interval': 30000
},
'yAxisLabel': 'Count of documents',
'series': [
{
'label': 'Count',
'values': [
{
'x': 1411761450000,
'y': 41
},
{
'x': 1411761480000,
'y': 18
},
{
'x': 1411761510000,
'y': 22
},
{
'x': 1411761540000,
'y': 17
},
{
'x': 1411761570000,
'y': 17
},
{
'x': 1411761600000,
'y': 21
},
{
'x': 1411761630000,
'y': 16
},
{
'x': 1411761660000,
'y': 17
},
{
'x': 1411761690000,
'y': 15
},
{
'x': 1411761720000,
'y': 19
},
{
'x': 1411761750000,
'y': 11
},
{
'x': 1411761780000,
'y': 13
},
{
'x': 1411761810000,
'y': 24
},
{
'x': 1411761840000,
'y': 20
},
{
'x': 1411761870000,
'y': 20
},
{
'x': 1411761900000,
'y': 21
},
{
'x': 1411761930000,
'y': 17
},
{
'x': 1411761960000,
'y': 20
},
{
'x': 1411761990000,
'y': 13
},
{
'x': 1411762020000,
'y': 14
},
{
'x': 1411762050000,
'y': 25
},
{
'x': 1411762080000,
'y': 17
},
{
'x': 1411762110000,
'y': 14
},
{
'x': 1411762140000,
'y': 22
},
{
'x': 1411762170000,
'y': 14
},
{
'x': 1411762200000,
'y': 19
},
{
'x': 1411762230000,
'y': 22
},
{
'x': 1411762260000,
'y': 17
},
{
'x': 1411762290000,
'y': 8
},
{
'x': 1411762320000,
'y': 15
},
{
'x': 1411762350000,
'y': 4
}
]
'charts': [{
'label': '',
'xAxisLabel': '@timestamp per 30 sec',
'ordered': {
'date': true,
'min': 1411761457636,
'max': 1411762357636,
'interval': 30000
},
'yAxisLabel': 'Count of documents',
'series': [
{
'label': 'Count',
'values': [
{
'x': 1411761450000,
'y': 41
},
{
'x': 1411761480000,
'y': 18
},
{
'x': 1411761510000,
'y': 22
},
{
'x': 1411761540000,
'y': 17
},
{
'x': 1411761570000,
'y': 17
},
{
'x': 1411761600000,
'y': 21
},
{
'x': 1411761630000,
'y': 16
},
{
'x': 1411761660000,
'y': 17
},
{
'x': 1411761690000,
'y': 15
},
{
'x': 1411761720000,
'y': 19
},
{
'x': 1411761750000,
'y': 11
},
{
'x': 1411761780000,
'y': 13
},
{
'x': 1411761810000,
'y': 24
},
{
'x': 1411761840000,
'y': 20
},
{
'x': 1411761870000,
'y': 20
},
{
'x': 1411761900000,
'y': 21
},
{
'x': 1411761930000,
'y': 17
},
{
'x': 1411761960000,
'y': 20
},
{
'x': 1411761990000,
'y': 13
},
{
'x': 1411762020000,
'y': 14
},
{
'x': 1411762050000,
'y': 25
},
{
'x': 1411762080000,
'y': 17
},
{
'x': 1411762110000,
'y': 14
},
{
'x': 1411762140000,
'y': 22
},
{
'x': 1411762170000,
'y': 14
},
{
'x': 1411762200000,
'y': 19
},
{
'x': 1411762230000,
'y': 22
},
{
'x': 1411762260000,
'y': 17
},
{
'x': 1411762290000,
'y': 8
},
{
'x': 1411762320000,
'y': 15
},
{
'x': 1411762350000,
'y': 4
}
]
}
],
'xAxisFormatter': function (thing) {
return moment(thing);
},
'tooltipFormatter': function (d) {
return d;
}
],
'hits': 533,
'xAxisFormatter': function (thing) {
return moment(thing);
},
'tooltipFormatter': function (d) {
return d;
}
}],
'hits': 533
};
Loading

0 comments on commit 9b0664a

Please sign in to comment.