Skip to content

Commit 3b3d8fa

Browse files
committed
tests: minor cleanup
1 parent e9d6fa2 commit 3b3d8fa

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

export-server/tests/charts/scientific/heatmap.test.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ describe('scientific charts, part 2', () => {
375375
});
376376
});
377377

378-
// TODO: Heatmap with Unequal Block Sizes - https://plotly.com/javascript/heatmaps/#heatmap-with-unequal-block-sizes
379378
it('Heatmap with Unequal Block Sizes', () => {
380379
const options = {
381380
port: 3000,
@@ -530,44 +529,5 @@ describe('scientific charts, part 2', () => {
530529
});
531530
});
532531
});
533-
534-
/*
535-
it('request with different data', () => {
536-
const options = {
537-
port: 3000,
538-
host: 'localhost',
539-
method: 'POST'
540-
};
541-
542-
const req = http.request(options);
543-
// Data taken from https://plotly.com/javascript/... example.
544-
const payload = '{ "x": ["2013-10-04 22:23:00", "2013-11-04 22:23:00", "2013-12-04 22:23:00"], "y": [1, 3, 6], "type": "scatter" }';
545-
req.write(payload);
546-
req.end();
547-
548-
req.on('response', (response) => {
549-
assert.strictEqual(200, response.statusCode);
550-
let body = '';
551-
response.on('data', (chunk) => {
552-
body += chunk;
553-
});
554-
response.on('end', () => {
555-
assert.ok(body.startsWith('<svg'));
556-
assert.ok(body.endsWith('</svg>'));
557-
558-
// Browser-based answer is something like
559-
// <svg ..
560-
561-
// Current server response is visually almost the same.
562-
// <svg ...
563-
564-
// Check partial matches, avoiding the random id bits.
565-
assert.ok(body.indexOf('') >= 0);
566-
assert.ok(body.indexOf('') > 0);
567-
assert.ok(body.indexOf('') > 0);
568-
});
569-
});
570-
});
571-
*/
572532
});
573533
});

0 commit comments

Comments
 (0)