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
283b39c3
Commit
283b39c3
authored
Jun 14, 2018
by
Tobias Skarhed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Karma to Jest: threshold_mapper
parent
155ff06c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
public/app/features/alerting/specs/threshold_mapper.jest.ts
+13
-13
No files found.
public/app/features/alerting/specs/threshold_mapper
_specs
.ts
→
public/app/features/alerting/specs/threshold_mapper
.jest
.ts
View file @
283b39c3
...
...
@@ -18,9 +18,9 @@ describe('ThresholdMapper', () => {
};
var
updated
=
ThresholdMapper
.
alertToGraphThresholds
(
panel
);
expect
(
updated
).
to
.
b
e
(
true
);
expect
(
panel
.
thresholds
[
0
].
op
).
to
.
b
e
(
'gt'
);
expect
(
panel
.
thresholds
[
0
].
value
).
to
.
b
e
(
100
);
expect
(
updated
).
to
B
e
(
true
);
expect
(
panel
.
thresholds
[
0
].
op
).
to
B
e
(
'gt'
);
expect
(
panel
.
thresholds
[
0
].
value
).
to
B
e
(
100
);
});
});
...
...
@@ -39,12 +39,12 @@ describe('ThresholdMapper', () => {
};
var
updated
=
ThresholdMapper
.
alertToGraphThresholds
(
panel
);
expect
(
updated
).
to
.
b
e
(
true
);
expect
(
panel
.
thresholds
[
0
].
op
).
to
.
b
e
(
'lt'
);
expect
(
panel
.
thresholds
[
0
].
value
).
to
.
b
e
(
100
);
expect
(
updated
).
to
B
e
(
true
);
expect
(
panel
.
thresholds
[
0
].
op
).
to
B
e
(
'lt'
);
expect
(
panel
.
thresholds
[
0
].
value
).
to
B
e
(
100
);
expect
(
panel
.
thresholds
[
1
].
op
).
to
.
b
e
(
'gt'
);
expect
(
panel
.
thresholds
[
1
].
value
).
to
.
b
e
(
200
);
expect
(
panel
.
thresholds
[
1
].
op
).
to
B
e
(
'gt'
);
expect
(
panel
.
thresholds
[
1
].
value
).
to
B
e
(
200
);
});
});
...
...
@@ -63,12 +63,12 @@ describe('ThresholdMapper', () => {
};
var
updated
=
ThresholdMapper
.
alertToGraphThresholds
(
panel
);
expect
(
updated
).
to
.
b
e
(
true
);
expect
(
panel
.
thresholds
[
0
].
op
).
to
.
b
e
(
'gt'
);
expect
(
panel
.
thresholds
[
0
].
value
).
to
.
b
e
(
100
);
expect
(
updated
).
to
B
e
(
true
);
expect
(
panel
.
thresholds
[
0
].
op
).
to
B
e
(
'gt'
);
expect
(
panel
.
thresholds
[
0
].
value
).
to
B
e
(
100
);
expect
(
panel
.
thresholds
[
1
].
op
).
to
.
b
e
(
'lt'
);
expect
(
panel
.
thresholds
[
1
].
value
).
to
.
b
e
(
200
);
expect
(
panel
.
thresholds
[
1
].
op
).
to
B
e
(
'lt'
);
expect
(
panel
.
thresholds
[
1
].
value
).
to
B
e
(
200
);
});
});
});
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