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 authored 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 40c5161

Please sign in to comment.