Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 11d6848

Browse files
committed
test: fix the types of the spec helpers
1 parent 518267d commit 11d6848

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
"devDependencies": {
187187
"@types/atom": "^1.40.10",
188188
"@types/jasmine": "^3.6.7",
189+
"@types/rimraf": "^3.0.0",
189190
"@babel/cli": "^7.13.10",
190191
"@babel/core": "^7.13.10",
191192
"atom-jasmine3-test-runner": "^5.2.2",

spec/linter-eslint-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const paths = {
3434
* Async helper to copy a file from one place to another on the filesystem.
3535
* @param {string} fileToCopyPath Path of the file to be copied
3636
* @param {string} destinationDir Directory to paste the file into
37-
* @return {string} Full path of the file in copy destination
37+
* @return {Promise<string>} path of the file in copy destination
3838
*/
3939
function copyFileToDir(fileToCopyPath, destinationDir) {
4040
return new Promise((resolve) => {
@@ -49,7 +49,7 @@ function copyFileToDir(fileToCopyPath, destinationDir) {
4949
* Utility helper to copy a file into the OS temp directory.
5050
*
5151
* @param {string} fileToCopyPath Path of the file to be copied
52-
* @return {string} Full path of the file in copy destination
52+
* @return {Promise<string>} path of the file in copy destination
5353
*/
5454
// eslint-disable-next-line import/prefer-default-export
5555
export async function copyFileToTempDir(fileToCopyPath) {

0 commit comments

Comments
 (0)