Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7be2105f
Commit
7be2105f
authored
Dec 26, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1272 from matschaffer/plugin-spec-support
Allow for plugin testing.
parents
49ee388d
85e50ece
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
23 additions
and
15 deletions
+23
-15
src/test/specs/graph-ctrl-specs.js
+1
-1
src/test/specs/graph-specs.js
+1
-1
src/test/specs/graphiteDatasource-specs.js
+1
-1
src/test/specs/graphiteTargetCtrl-specs.js
+1
-1
src/test/specs/influxdb-datasource-specs.js
+1
-1
src/test/specs/row-ctrl-specs.js
+1
-1
src/test/specs/seriesOverridesCtrl-specs.js
+1
-1
src/test/specs/sharePanelCtrl-specs.js
+1
-1
src/test/specs/templateValuesSrv-specs.js
+1
-1
src/test/specs/timeSrv-specs.js
+1
-1
src/test/test-main.js
+12
-5
tasks/options/jscs.js
+1
-0
No files found.
src/test/specs/graph-ctrl-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'panels/graph/module'
'panels/graph/module'
],
function
(
helpers
)
{
],
function
(
helpers
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/graph-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'angular'
,
'angular'
,
'jquery'
,
'jquery'
,
'components/timeSeries'
,
'components/timeSeries'
,
...
...
src/test/specs/graphiteDatasource-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'services/graphite/graphiteDatasource'
'services/graphite/graphiteDatasource'
],
function
(
helpers
)
{
],
function
(
helpers
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/graphiteTargetCtrl-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'services/graphite/gfunc'
,
'services/graphite/gfunc'
,
'controllers/graphiteTarget'
'controllers/graphiteTarget'
],
function
(
helpers
,
gfunc
)
{
],
function
(
helpers
,
gfunc
)
{
...
...
src/test/specs/influxdb-datasource-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'services/influxdb/influxdbDatasource'
'services/influxdb/influxdbDatasource'
],
function
(
helpers
)
{
],
function
(
helpers
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/row-ctrl-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'controllers/row'
'controllers/row'
],
function
(
helpers
)
{
],
function
(
helpers
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/seriesOverridesCtrl-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'panels/graph/seriesOverridesCtrl'
'panels/graph/seriesOverridesCtrl'
],
function
(
helpers
)
{
],
function
(
helpers
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/sharePanelCtrl-specs.js
View file @
7be2105f
define
([
define
([
'
./
helpers'
,
'helpers'
,
'controllers/sharePanelCtrl'
'controllers/sharePanelCtrl'
],
function
(
helpers
)
{
],
function
(
helpers
)
{
'use strict'
;
'use strict'
;
...
...
src/test/specs/templateValuesSrv-specs.js
View file @
7be2105f
define
([
define
([
'mocks/dashboard-mock'
,
'mocks/dashboard-mock'
,
'
./
helpers'
,
'helpers'
,
'moment'
,
'moment'
,
'services/templateValuesSrv'
'services/templateValuesSrv'
],
function
(
dashboardMock
,
helpers
,
moment
)
{
],
function
(
dashboardMock
,
helpers
,
moment
)
{
...
...
src/test/specs/timeSrv-specs.js
View file @
7be2105f
define
([
define
([
'mocks/dashboard-mock'
,
'mocks/dashboard-mock'
,
'
./
helpers'
,
'helpers'
,
'lodash'
,
'lodash'
,
'services/timeSrv'
'services/timeSrv'
],
function
(
dashboardMock
,
helpers
,
_
)
{
],
function
(
dashboardMock
,
helpers
,
_
)
{
...
...
src/test/test-main.js
View file @
7be2105f
...
@@ -4,7 +4,8 @@ require.config({
...
@@ -4,7 +4,8 @@ require.config({
paths
:
{
paths
:
{
specs
:
'../test/specs'
,
specs
:
'../test/specs'
,
mocks
:
'../test/mocks'
,
mocks
:
'../test/mocks'
,
config
:
'../config.sample'
,
helpers
:
'../test/specs/helpers'
,
config
:
[
'../config'
,
'../config.sample'
],
kbn
:
'components/kbn'
,
kbn
:
'components/kbn'
,
store
:
'components/store'
,
store
:
'components/store'
,
...
@@ -96,9 +97,10 @@ require.config({
...
@@ -96,9 +97,10 @@ require.config({
require
([
require
([
'angular'
,
'angular'
,
'config'
,
'angularMocks'
,
'angularMocks'
,
'app'
,
'app'
,
],
function
(
angular
)
{
],
function
(
angular
,
config
)
{
'use strict'
;
'use strict'
;
for
(
var
file
in
window
.
__karma__
.
files
)
{
for
(
var
file
in
window
.
__karma__
.
files
)
{
...
@@ -113,7 +115,7 @@ require([
...
@@ -113,7 +115,7 @@ require([
angular
.
module
(
'grafana.panels'
,
[]);
angular
.
module
(
'grafana.panels'
,
[]);
angular
.
module
(
'grafana.filters'
,
[]);
angular
.
module
(
'grafana.filters'
,
[]);
require
(
[
var
specs
=
[
'specs/lexer-specs'
,
'specs/lexer-specs'
,
'specs/parser-specs'
,
'specs/parser-specs'
,
'specs/gfunc-specs'
,
'specs/gfunc-specs'
,
...
@@ -135,9 +137,14 @@ require([
...
@@ -135,9 +137,14 @@ require([
'specs/kbn-format-specs'
,
'specs/kbn-format-specs'
,
'specs/dashboardSrv-specs'
,
'specs/dashboardSrv-specs'
,
'specs/dashboardViewStateSrv-specs'
'specs/dashboardViewStateSrv-specs'
],
function
()
{
];
window
.
__karma__
.
start
();
var
pluginSpecs
=
(
config
.
plugins
.
specs
||
[]).
map
(
function
(
spec
)
{
return
'../plugins/'
+
spec
;
});
});
require
(
specs
.
concat
(
pluginSpecs
),
function
()
{
window
.
__karma__
.
start
();
});
});
});
tasks/options/jscs.js
View file @
7be2105f
...
@@ -3,6 +3,7 @@ module.exports = function(config) {
...
@@ -3,6 +3,7 @@ module.exports = function(config) {
src
:
[
src
:
[
'Gruntfile.js'
,
'Gruntfile.js'
,
'<%= srcDir %>/app/**/*.js'
,
'<%= srcDir %>/app/**/*.js'
,
'<%= srcDir %>/plugins/**/*.js'
,
'!<%= srcDir %>/app/panels/*/{lib,leaflet}/*'
,
'!<%= srcDir %>/app/panels/*/{lib,leaflet}/*'
,
'!<%= srcDir %>/app/dashboards/*'
'!<%= srcDir %>/app/dashboards/*'
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment