Skip to content

Commit

Permalink
test: improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Feb 26, 2024
1 parent 9a10b17 commit 89d87fd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/transform.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ describe('transform', function() {

// helpers //////////////////

function testPreTransform(name, iit = it) {
testTransform(name, preTransform, 'js', iit);
}

/**
* @typedef { (
* import('mocha').TestFunction |
Expand All @@ -121,6 +117,14 @@ function testPreTransform(name, iit = it) {
* ) } TestFunction
*/

/**
* @param {string} name
* @param {TestFunction} iit
*/
function testPreTransform(name, iit = it) {
testTransform(name, preTransform, 'js', iit);
}

/**
* @param {string} name
* @param {TestFunction} iit
Expand Down

0 comments on commit 89d87fd

Please sign in to comment.