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
a5d158c0
Commit
a5d158c0
authored
Feb 11, 2019
by
Dominik Prokop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added one more test case for color resolving helper
parent
ed208f2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
packages/grafana-ui/src/utils/namedColorsPalette.test.ts
+4
-0
No files found.
packages/grafana-ui/src/utils/namedColorsPalette.test.ts
View file @
a5d158c0
...
...
@@ -44,6 +44,10 @@ describe('colors', () => {
});
describe
(
'getColorFromHexRgbOrName'
,
()
=>
{
it
(
'returns black for unknown color'
,
()
=>
{
expect
(
getColorFromHexRgbOrName
(
'aruba-sunshine'
)).
toBe
(
"#000000"
);
});
it
(
'returns dark hex variant for known color if theme not specified'
,
()
=>
{
expect
(
getColorFromHexRgbOrName
(
SemiDarkBlue
.
name
)).
toBe
(
SemiDarkBlue
.
variants
.
dark
);
});
...
...
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