Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evgeny
c3-closed
Commits
822cfdcc
Commit
822cfdcc
authored
Oct 07, 2014
by
michalkop93
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test for function in config.data_order
parent
7d882e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
data-spec.js
spec/data-spec.js
+33
-0
No files found.
spec/data-spec.js
0 → 100644
View file @
822cfdcc
var
describe
=
window
.
describe
,
expect
=
window
.
expect
,
it
=
window
.
it
,
beforeEach
=
window
.
beforeEach
;
describe
(
'c3 chart data'
,
function
()
{
'use strict'
;
var
chart
,
d3
;
beforeEach
(
function
()
{
window
.
initDom
();
chart
=
window
.
c3
.
generate
({
data
:
{
columns
:
[
[
'data1'
,
30
,
200
,
100
,
400
,
150
,
250
],
[
'data2'
,
50
,
20
,
10
,
40
,
15
,
25
],
[
'data3'
,
150
,
120
,
110
,
140
,
115
,
125
]
],
order
:
function
()
{
return
0
;
}
}
});
d3
=
chart
.
internal
.
d3
;
});
describe
(
'function in data.order'
,
function
()
{
it
(
'should return false in isOrderAsc and isOrderDesc functions'
,
function
()
{
expect
(
chart
.
internal
.
isOrderAsc
()
||
chart
.
internal
.
isOrderDesc
()).
toBe
(
false
);
});
});
});
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