addin heading to convertPrrByKey2Csv() method
This commit is contained in:
@@ -10,14 +10,19 @@ QUnit.module('PrrByKey2CsvConverterTest', function () {
|
||||
// When
|
||||
const csv = PrrByKey2CsvConverter.convertPrrByKey2Csv(
|
||||
{
|
||||
prrByKey: prrByKey,
|
||||
keyColumn: 'Vaccine',
|
||||
prrColumn: 'Proportional Reporting Ratio'
|
||||
heading: '# Symptom: Acute hepatitis C',
|
||||
columns: {
|
||||
keyColumn: 'Vaccine',
|
||||
prrColumn: 'Proportional Reporting Ratio'
|
||||
},
|
||||
prrByKey: prrByKey
|
||||
});
|
||||
|
||||
// Then
|
||||
const csvExpected =
|
||||
`"Vaccine","Proportional Reporting Ratio"
|
||||
`# Symptom: Acute hepatitis C
|
||||
|
||||
"Vaccine","Proportional Reporting Ratio"
|
||||
"MM,R",26.17432376240791
|
||||
"VARCEL",10.549534724816644`;
|
||||
assert.equal(csv, csvExpected);
|
||||
|
||||
Reference in New Issue
Block a user