Skip to content

Commit

Permalink
Merge pull request #1173 from rvilarl/fix/1162
Browse files Browse the repository at this point in the history
fix #1162 duplicate image filename
  • Loading branch information
mscuthbert authored Oct 5, 2021
2 parents 7bf73ee + b819243 commit 11db474
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/boundingboxcomputation_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
//
// BoundingBoxComputation Tests

// TODO: Provide a unique names for each test, so we can render separate PNGs.
// Append an index to line 20 'Quadratic Test' and line 21 'Cubic Test'.

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { BoundingBoxComputation } from 'boundingboxcomputation';
import { Glyph, OutlineCode } from 'glyph';
Expand All @@ -16,8 +13,12 @@ const BoundingBoxComputationTests = {
QUnit.module('BoundingBoxComputation');
test('Point Test', point);
const run = VexFlowTests.runTests;
quadraticParams.forEach((params /*, index*/) => run('Quadratic Test', quadratic, params));
cubicParams.forEach((params /*, index*/) => run('Cubic Test', cubic, params));
quadraticParams.forEach((params, index) => {
run(`Quadratic Test ${index}`, quadratic, params);
});
cubicParams.forEach((params, index) => {
run(`Cubic Test ${index}`, cubic, params);
});
},
};

Expand Down

0 comments on commit 11db474

Please sign in to comment.