starting SymptomVsSymptomChartDataProviderTest
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
QUnit.module('SymptomVsSymptomChartDataProviderTest', function () {
|
||||
|
||||
QUnit.test.each(
|
||||
'shouldRetainCommonLots',
|
||||
[
|
||||
[
|
||||
{
|
||||
prrByLotX: {
|
||||
"lotX": 1.0
|
||||
},
|
||||
prrByLotY: {
|
||||
"lotY": 2.0
|
||||
}
|
||||
},
|
||||
{
|
||||
prrByLotX: {
|
||||
},
|
||||
prrByLotY: {
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
prrByLotX: {
|
||||
"lotX": 1.0,
|
||||
"lotCommon": 2.0
|
||||
},
|
||||
prrByLotY: {
|
||||
"lotCommon": 3.0,
|
||||
"lotY": 4.0
|
||||
}
|
||||
},
|
||||
{
|
||||
prrByLotX: {
|
||||
"lotCommon": 2.0
|
||||
},
|
||||
prrByLotY: {
|
||||
"lotCommon": 3.0
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
(assert, [dataSets, mergedDataSets]) => {
|
||||
// Given
|
||||
|
||||
// When
|
||||
const mergedDataSetsActual = SymptomVsSymptomChartDataProvider.retainCommonLots(dataSets);
|
||||
|
||||
// Then
|
||||
assert.deepEqual(mergedDataSetsActual, mergedDataSets);
|
||||
});
|
||||
});
|
||||
37
docs/SymptomsCausedByCOVIDLots/test/index.test.html
Normal file
37
docs/SymptomsCausedByCOVIDLots/test/index.test.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Safety Signals for COVID Batches</title>
|
||||
<script src="../../Utils.js"></script>
|
||||
<script src="../../UIUtils.js"></script>
|
||||
<script src="../../NumberWithBarElementFactory.js"></script>
|
||||
<script src="../js/Sets.js"></script>
|
||||
<script src="../js/PrrByKey2CsvConverter.js"></script>
|
||||
<script src="../js/PageInitializer.js"></script>
|
||||
<script src="../js/PrrByVaccineProvider.js"></script>
|
||||
<script src="../js/PrrByKeyTable.js"></script>
|
||||
<script src="../js/PrrByKeyTableView.js"></script>
|
||||
<script src="../js/PrrByVaccineTableView.js"></script>
|
||||
<script src="../js/PrrBySymptomTableView.js"></script>
|
||||
<script src="../js/SymptomVsSymptomChartView.js"></script>
|
||||
<script src="../js/SymptomVsSymptomChartDataProvider.js"></script>
|
||||
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.17.2.css">
|
||||
<script src="https://code.jquery.com/qunit/qunit-2.17.2.js"></script>
|
||||
<script type="text/javascript" src="./jshamcrest.js"></script>
|
||||
<script type="text/javascript" src="./jsmockito-1.0.4.js"></script>
|
||||
<script>
|
||||
JsHamcrest.Integration.QUnit();
|
||||
JsMockito.Integration.QUnit();
|
||||
</script>
|
||||
<script src="./SymptomVsSymptomChartDataProviderTest.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="qunit"></div>
|
||||
<div id="qunit-fixture"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1500
docs/SymptomsCausedByCOVIDLots/test/jshamcrest.js
Normal file
1500
docs/SymptomsCausedByCOVIDLots/test/jshamcrest.js
Normal file
File diff suppressed because it is too large
Load Diff
1019
docs/SymptomsCausedByCOVIDLots/test/jsmockito-1.0.4.js
Normal file
1019
docs/SymptomsCausedByCOVIDLots/test/jsmockito-1.0.4.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user