Skip to content

Commit 2e0f06c

Browse files
ioandrdrjova
authored andcommitted
tests: refactor
* Refactors the configuration of Webpack. * Adds tests for graphs (PhantomJS). Signed-off by Ioannis Androulidakis <[email protected]>
1 parent a2d6617 commit 2e0f06c

20 files changed

+874
-389
lines changed

.eslintrc

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
"comma-dangle": ["error", "never"],
1111
"no-console": 0,
1212
"no-param-reassign": [2, { "props": false }],
13-
# TODO: Check for a fix
14-
"jsx-a11y/href-no-hash": "off",
15-
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
1613
"no-use-before-define": ["error", { "functions": false, "classes": true }],
17-
"class-methods-use-this": "off"
14+
"class-methods-use-this": "off",
15+
16+
# TODO: Check for a fix - dep issue with [email protected]
17+
"jsx-a11y/href-no-hash": "off",
18+
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }]
1819
}
1920
}

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Coverage directory used by tools like istanbul
1+
# Coverage directory
22
coverage
33

44
# Logs
@@ -20,4 +20,7 @@ package-lock.json
2020

2121
# Bundle
2222
dist/
23+
24+
# JS Docs
2325
docs/
26+
jsdocs-conf.json

conf.json

-21
This file was deleted.

examples/data/data.js

+161-161
Original file line numberDiff line numberDiff line change
@@ -880,39 +880,39 @@ dataCDS.pageviewsVideosInterval1month = [
880880
}
881881
]
882882
},
883-
{
884-
label: 'dataset2',
885-
data: [
886-
{
887-
"time":1483228800000,
888-
"count":1730678
889-
},
890-
{
891-
"time":1485907200000,
892-
"count":1899236
893-
},
894-
{
895-
"time":1488326400000,
896-
"count":937458
897-
},
898-
{
899-
"time":1491004800000,
900-
"count":1059326
901-
},
902-
{
903-
"time":1493596800000,
904-
"count":1183001
905-
},
906-
{
907-
"time":1496275200000,
908-
"count":1339100
909-
},
910-
{
911-
"time":1498867200000,
912-
"count":789573
913-
}
914-
]
915-
},
883+
// {
884+
// label: 'dataset2',
885+
// data: [
886+
// {
887+
// "time":1483228800000,
888+
// "count":1730678
889+
// },
890+
// {
891+
// "time":1485907200000,
892+
// "count":1899236
893+
// },
894+
// {
895+
// "time":1488326400000,
896+
// "count":937458
897+
// },
898+
// {
899+
// "time":1491004800000,
900+
// "count":1059326
901+
// },
902+
// {
903+
// "time":1493596800000,
904+
// "count":1183001
905+
// },
906+
// {
907+
// "time":1496275200000,
908+
// "count":1339100
909+
// },
910+
// {
911+
// "time":1498867200000,
912+
// "count":789573
913+
// }
914+
// ]
915+
// },
916916
// {
917917
// label: 'dataset3',
918918
// data: [
@@ -1088,141 +1088,141 @@ dataCDS.pageviewsVideosPerCountry = [{
10881088
label: 'pageviews',
10891089
data: [
10901090
{
1091-
term: 'CH',
1092-
count: 675866
1093-
},
1094-
{
1095-
term: 'FR',
1096-
count: 612115
1097-
},
1098-
{
1099-
term: 'US',
1100-
count: 385141
1101-
},
1102-
{
1103-
term: 'GB',
1104-
count: 300612
1105-
},
1106-
{
1107-
term: 'IN',
1108-
count: 236008
1109-
},
1110-
{
1111-
term: 'IT',
1112-
count: 233017
1113-
},
1114-
{
1115-
term: 'DE',
1116-
count: 181927
1117-
},
1118-
{
1119-
term: 'GR',
1120-
count: 181636
1121-
},
1122-
{
1123-
term: 'PK',
1124-
count: 164673
1125-
},
1126-
{
1127-
term: 'ES',
1128-
count: 163742
1129-
},
1130-
{
1131-
term: 'PL',
1132-
count: 89485
1133-
},
1134-
{
1135-
term: 'CA',
1136-
count: 83971
1137-
},
1138-
{
1139-
term: 'TR',
1140-
count: 66127
1141-
},
1142-
{
1143-
term: 'NL',
1144-
count: 65974
1145-
},
1146-
{
1147-
term: 'NO',
1148-
count: 50996
1149-
},
1150-
{
1151-
term: 'BR',
1152-
count: 50850
1153-
},
1154-
{
1155-
term: 'BE',
1156-
count: 48797
1157-
},
1158-
{
1159-
term: 'RU',
1160-
count: 46022
1161-
},
1162-
{
1163-
term: 'PT',
1164-
count: 45180
1165-
},
1166-
{
1167-
term: 'SE',
1168-
count: 41965
1169-
},
1170-
{
1171-
term: 'FI',
1172-
count: 36684
1173-
},
1174-
{
1175-
term: 'AT',
1176-
count: 33898
1177-
},
1178-
{
1179-
term: 'AU',
1180-
count: 31521
1181-
},
1182-
{
1183-
term: 'RO',
1184-
count: 27462
1185-
},
1186-
{
1187-
term: 'DK',
1188-
count: 27261
1189-
},
1190-
{
1191-
term: 'CZ',
1192-
count: 26707
1193-
},
1194-
{
1195-
term: 'MX',
1196-
count: 22205
1197-
},
1198-
{
1199-
term: 'ID',
1200-
count: 20539
1201-
},
1202-
{
1203-
term: 'JP',
1204-
count: 20179
1205-
},
1206-
{
1207-
term: 'IR',
1208-
count: 19635
1209-
},
1210-
{
1211-
term: 'HU',
1212-
count: 19375
1213-
},
1214-
{
1215-
term: 'BG',
1216-
count: 18254
1217-
}
1091+
term: 'CH',
1092+
count: 375866
1093+
},
1094+
{
1095+
term: 'FR',
1096+
count: 412115
1097+
},
1098+
{
1099+
term: 'US',
1100+
count: 685141
1101+
},
1102+
{
1103+
term: 'GB',
1104+
count: 250612
1105+
},
1106+
{
1107+
term: 'IN',
1108+
count: 166008
1109+
},
1110+
{
1111+
term: 'IT',
1112+
count: 153017
1113+
},
1114+
{
1115+
term: 'DE',
1116+
count: 111927
1117+
},
1118+
{
1119+
term: 'GR',
1120+
count: 281636
1121+
},
1122+
{
1123+
term: 'PK',
1124+
count: 204673
1125+
},
1126+
{
1127+
term: 'ES',
1128+
count: 183742
1129+
},
1130+
{
1131+
term: 'PL',
1132+
count: 119485
1133+
},
1134+
{
1135+
term: 'CA',
1136+
count: 53971
1137+
},
1138+
{
1139+
term: 'TR',
1140+
count: 36127
1141+
},
1142+
{
1143+
term: 'NL',
1144+
count: 75974
1145+
},
1146+
{
1147+
term: 'NO',
1148+
count: 55996
1149+
},
1150+
{
1151+
term: 'BR',
1152+
count: 40850
1153+
},
1154+
{
1155+
term: 'BE',
1156+
count: 98797
1157+
},
1158+
{
1159+
term: 'RU',
1160+
count: 26022
1161+
},
1162+
{
1163+
term: 'PT',
1164+
count: 49180
1165+
},
1166+
{
1167+
term: 'SE',
1168+
count: 61965
1169+
},
1170+
{
1171+
term: 'FI',
1172+
count: 33684
1173+
},
1174+
{
1175+
term: 'AT',
1176+
count: 30898
1177+
},
1178+
{
1179+
term: 'AU',
1180+
count: 15521
1181+
},
1182+
{
1183+
term: 'RO',
1184+
count: 45462
1185+
},
1186+
{
1187+
term: 'DK',
1188+
count: 77261
1189+
},
1190+
{
1191+
term: 'CZ',
1192+
count: 15707
1193+
},
1194+
{
1195+
term: 'MX',
1196+
count: 30205
1197+
},
1198+
{
1199+
term: 'ID',
1200+
count: 15539
1201+
},
1202+
{
1203+
term: 'JP',
1204+
count: 21179
1205+
},
1206+
{
1207+
term: 'IR',
1208+
count: 20635
1209+
},
1210+
{
1211+
term: 'HU',
1212+
count: 45375
1213+
},
1214+
{
1215+
term: 'BG',
1216+
count: 13254
1217+
}
12181218
]
12191219
}
12201220
]
12211221

12221222
dataCDS.pageviewsVideosPerCountryUpdate = [{
12231223
label: 'pageviews',
12241224
data: [
1225-
{
1225+
{
12261226
term: 'CH',
12271227
count: 375866
12281228
},

0 commit comments

Comments
 (0)