Commit graph

2130 commits

Author SHA1 Message Date
Chris Cowan
f6159de406 State Object Refactor
Refactored the State object to clean some things up and add some tests.
Also fixed the defaults so they are properly applied.

- Changed State#commit to State#save()
- Added a base class for State
- Refactored AppState to inherit State
- Refactored GlboalState to inherit State
- Added utils/diff_object with tests for creating a diff report and
  applying the changes to the target while ignorning vars with an
  underscore prefix and functions
2014-08-05 12:46:15 -07:00
Chris Cowan
c6c83806a8 Moving event to use Angular event's system 2014-08-05 12:46:14 -07:00
Chris Cowan
96d3d2926c Moving event to use Angular event's system 2014-08-05 12:46:14 -07:00
Chris Cowan
07e3cb2948 State Object Refactor
Refactored the State object to clean some things up and add some tests.
Also fixed the defaults so they are properly applied.

- Changed State#commit to State#save()
- Added a base class for State
- Refactored AppState to inherit State
- Refactored GlboalState to inherit State
- Added utils/diff_object with tests for creating a diff report and
  applying the changes to the target while ignorning vars with an
  underscore prefix and functions
2014-08-05 12:45:01 -07:00
Chris Cowan
42f444118d State Object Refactor
Refactored the State object to clean some things up and add some tests.
Also fixed the defaults so they are properly applied.

- Changed State#commit to State#save()
- Added a base class for State
- Refactored AppState to inherit State
- Refactored GlboalState to inherit State
- Added utils/diff_object with tests for creating a diff report and
  applying the changes to the target while ignorning vars with an
  underscore prefix and functions
2014-08-05 12:45:01 -07:00
Spencer Alger
d73abecbe1 refactored discover hit sort, added tests 2014-08-04 14:36:08 -07:00
Spencer Alger
9f280efad1 refactored discover hit sort, added tests 2014-08-04 14:36:08 -07:00
Spencer Alger
e46b6b488d automatically mock angular in the tests
added SearchSource#getNormalizedSort() method

Closes #217
2014-08-01 14:13:28 -07:00
Spencer Alger
6b149b25ce automatically mock angular in the tests
added SearchSource#getNormalizedSort() method

Closes #217
2014-08-01 14:13:28 -07:00
Spencer Alger
9fce04d47a removed courier tests 2014-08-01 12:24:35 -07:00
Spencer Alger
ac2c11def0 removed courier tests 2014-08-01 12:24:35 -07:00
Rashid Khan
05e65b3d2d Add simple test for spinner 2014-07-30 11:02:03 -07:00
Rashid Khan
3ee0553880 Add simple test for spinner 2014-07-30 11:02:03 -07:00
Spencer Alger
29fb533a45 fixed refs that pointed to modules removed in 0eca7724ce 2014-07-22 15:14:02 -07:00
Spencer Alger
d6f412f8b2 fixed refs that pointed to modules removed in 0eca7724ce 2014-07-22 15:14:02 -07:00
Spencer Alger
9f0f69d1bd provide hooks for app loading lifecycle, using them to prevent race condition in tests 2014-07-22 11:22:58 -07:00
Spencer Alger
8142626b6d provide hooks for app loading lifecycle, using them to prevent race condition in tests 2014-07-22 11:22:58 -07:00
Spencer Alger
1d58055cf8 completed the splitting of _wrap_route_with_prep.js 2014-07-16 11:43:36 -07:00
Spencer Alger
f092f5cdf7 completed the splitting of _wrap_route_with_prep.js 2014-07-16 11:43:36 -07:00
Spencer Alger
a5995ce3db added tests for route wrapping 2014-07-15 12:45:45 -07:00
Spencer Alger
a32d0438b2 added tests for route wrapping 2014-07-15 12:45:45 -07:00
Spencer Alger
24aded5aa5 added test 2014-07-11 11:59:13 -07:00
Spencer Alger
433bcaeef8 added test 2014-07-11 11:59:13 -07:00
Spencer Alger
30f3d217d3 wrap top-level tests in a describe so the beforeEach doesn't leak 2014-07-11 11:58:20 -07:00
Spencer Alger
43bae12e8b wrap top-level tests in a describe so the beforeEach doesn't leak 2014-07-11 11:58:20 -07:00
Spencer Alger
8857d9e483 started tests for routes 2014-06-20 12:27:41 -07:00
Spencer Alger
5db9fa3fc6 started tests for routes 2014-06-20 12:27:41 -07:00
Rashid Khan
c71b9dab83 Ignore rison.js 2014-06-19 14:53:11 -07:00
Rashid Khan
00ce06bdff Ignore rison.js 2014-06-19 14:53:11 -07:00
Spencer Alger
ae6e163bfe sort expects a 1, 0, or -1 to be returned, not a boolean 2014-06-19 09:52:29 -07:00
Spencer Alger
808703c0cd sort expects a 1, 0, or -1 to be returned, not a boolean 2014-06-19 09:52:29 -07:00
Spencer Alger
0917ba213c misread the line and thought I was helping 2014-06-18 19:00:36 -07:00
Spencer Alger
aac88eaa83 misread the line and thought I was helping 2014-06-18 19:00:36 -07:00
Spencer Alger
7363c1e13d fixed a bug in the versionmath that occured when multiple of the same version were sorted. Updated the tests to include this 2014-06-18 18:59:06 -07:00
Spencer Alger
351f0eb42d fixed a bug in the versionmath that occured when multiple of the same version were sorted. Updated the tests to include this 2014-06-18 18:59:06 -07:00
Rashid Khan
b526eb2917 Add semantic version checking. Set minimum elasticsearch version to 1.2.1 2014-06-18 13:56:43 -07:00
Rashid Khan
98bb102ae5 Add semantic version checking. Set minimum elasticsearch version to 1.2.1 2014-06-18 13:56:43 -07:00
Rashid Khan
e8c9173e6f Add class to spinner, fix linting, remove whitespace 2014-06-17 14:29:20 -07:00
Rashid Khan
91665a7905 Add class to spinner, fix linting, remove whitespace 2014-06-17 14:29:20 -07:00
Rashid Khan
5fbcd92bfb Merge branch 'master' of github.com:elasticsearch/kibana4 2014-06-17 14:20:19 -07:00
Rashid Khan
65a5e23389 Merge branch 'master' of github.com:elasticsearch/kibana4 2014-06-17 14:20:19 -07:00
Rashid Khan
90401e8ea3 Add tests for moment, startFrom and uriescape filters 2014-06-17 14:20:08 -07:00
Rashid Khan
4172050651 Add tests for moment, startFrom and uriescape filters 2014-06-17 14:20:08 -07:00
Spencer Alger
0f9e99fc1a change all require paths to be relative 2014-06-17 14:05:55 -07:00
Spencer Alger
0bc95c617b change all require paths to be relative 2014-06-17 14:05:55 -07:00
Rashid Khan
dc1aafa746 Tests for the fieldType filter 2014-06-17 13:33:19 -07:00
Rashid Khan
e1a8ee0e03 Tests for the fieldType filter 2014-06-17 13:33:19 -07:00
Rashid Khan
483e9c8ff9 Add tests for interval describe 2014-06-16 15:35:18 -07:00
Rashid Khan
9b7f6fa2e8 Add tests for interval describe 2014-06-16 15:35:18 -07:00
Spencer Alger
3c2f6ca38c moved devServer into a module so that it can be used programmatically 2014-06-12 16:01:24 -07:00