Skip to content

Commit

Permalink
Refactor copy API to async/await (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 24, 2023
1 parent 6f2b2bc commit 40c5161
Show file tree
Hide file tree
Showing 11 changed files with 202 additions and 249 deletions.
2 changes: 1 addition & 1 deletion lib/copy/__tests__/copy-broken-symlink.test.js
Expand Up @@ -5,7 +5,7 @@ const os = require('os')
const fse = require('../..')
const path = require('path')
const assert = require('assert')
const copy = require('../copy')
const { copy } = require('../')

/* global afterEach, beforeEach, describe, it */

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/copy-preserve-timestamp.test.js
Expand Up @@ -3,7 +3,7 @@
const fs = require('../../')
const os = require('os')
const path = require('path')
const copy = require('../copy')
const { copy } = require('../')
const utimesSync = require('../../util/utimes').utimesMillisSync
const assert = require('assert')

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/broken-symlink.test.js
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs')
const os = require('os')
const fse = require('../../..')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const assert = require('assert')

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/ncp-error-perm.test.js
Expand Up @@ -5,7 +5,7 @@
const fs = require('fs')
const os = require('os')
const fse = require('../../..')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const assert = require('assert')

Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/ncp.test.js
@@ -1,7 +1,7 @@
'use strict'

const fs = require('fs')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const rimraf = require('rimraf')
const assert = require('assert')
Expand Down
2 changes: 1 addition & 1 deletion lib/copy/__tests__/ncp/symlink.test.js
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs')
const os = require('os')
const fse = require('../../..')
const ncp = require('../../copy')
const { copy: ncp } = require('../../')
const path = require('path')
const assert = require('assert')

Expand Down

0 comments on commit 40c5161

Please sign in to comment.