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
cdced6e4
Unverified
Commit
cdced6e4
authored
Mar 18, 2019
by
Andrej Ocenas
Committed by
GitHub
Mar 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16047 from grafana/grunt-no-only-tests-add-patterns
Add patterns to no-only-tests grunt task
parents
ed1b0019
dcc5373e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.test.tsx
+1
-1
scripts/grunt/default_task.js
+5
-2
No files found.
packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.test.tsx
View file @
cdced6e4
...
...
@@ -161,7 +161,7 @@ describe('change threshold value', () => {
});
describe
(
'on blur threshold value'
,
()
=>
{
it
.
only
(
'should resort rows and update indexes'
,
()
=>
{
it
(
'should resort rows and update indexes'
,
()
=>
{
const
{
instance
}
=
setup
();
const
thresholds
=
[
{
index
:
0
,
value
:
-
Infinity
,
color
:
'#7EB26D'
},
...
...
scripts/grunt/default_task.js
View file @
cdced6e4
...
...
@@ -34,14 +34,17 @@ module.exports = function (grunt) {
]);
grunt
.
registerTask
(
'no-only-tests'
,
function
()
{
var
files
=
grunt
.
file
.
expand
(
'public/**/*_specs
\
.ts'
,
'public/**/*_specs
\
.js'
);
var
files
=
grunt
.
file
.
expand
(
'public/**/*@(_specs|
\
.test)
\
.@(ts|js|tsx|jsx)'
,
'packages/grafana-ui/**/*@(_specs|
\
.test)
\
.@(ts|js|tsx|jsx)'
);
files
.
forEach
(
function
(
spec
)
{
var
rows
=
grunt
.
file
.
read
(
spec
).
split
(
'
\
n'
);
rows
.
forEach
(
function
(
row
)
{
if
(
row
.
indexOf
(
'.only('
)
>
0
)
{
grunt
.
log
.
errorlns
(
row
);
grunt
.
fail
.
warn
(
'found only statement in test: '
+
spec
)
grunt
.
fail
.
warn
(
'found only statement in test: '
+
spec
)
;
}
});
});
...
...
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