Compare commits

..

4 Commits
1.2.2 ... 1.2.3

Author SHA1 Message Date
Rowan Manning
d0feee8dd5 Version 1.2.3 2014-01-13 09:38:10 +00:00
Rowan Manning
f97e224679 Update the tests to allow for the new CSV format 2014-01-13 09:37:16 +00:00
Rowan Manning
ddbb0db33d Remove spaces in the CSV header row 2014-01-13 09:33:51 +00:00
Quannon Au
e0290b4fc5 Issue 74 - Fix CSV format for Mac Excel 2014-01-10 11:25:16 -08:00
4 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ pa11y-dashboard
pa11y-dashboard is a web interface to the [pa11y][pa11y] accessibility reporter; allowing you to focus on *fixing* issues rather than hunting them down.
**Current Version:** *1.2.2*
**Current Version:** *1.2.3*
**Build Status:** [![Build Status][travis-img]][travis]
**Node Version Support:** *0.10*

View File

@@ -1,6 +1,6 @@
{
"name": "pa11y-dashboard",
"version": "1.2.2",
"version": "1.2.3",
"private": true,
"description": "pa11y-dashboard is a visual web interface to the pa11y accessibility reporter",

View File

@@ -46,13 +46,13 @@ function route (app) {
app.express.get('/:id/:rid.csv', getTaskAndResult, function (req, res) {
var task = res.locals.task;
var result = res.locals.result;
var rows = ['"code", "message", "type"'];
var rows = ['"code","message","type"'];
result.results.forEach(function (msg) {
rows.push([
JSON.stringify(msg.code),
JSON.stringify(msg.message),
JSON.stringify(msg.type)
].join(', '));
].join(','));
});
res.attachment(getDownloadFileName(task, result, 'csv'));
res.send(rows.join('\n'));

View File

@@ -20,7 +20,7 @@ describe('GET /<task-id>/<result-id>.csv', function () {
});
it('should output CSV results', function () {
assert.match(this.last.body, /^"code", "message", "type"/);
assert.match(this.last.body, /^"code","message","type"/);
});
});