Skip to content

Commit

Permalink
Chore: remove OS-specific behavior test (refs #43)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Jun 26, 2018
1 parent ec90f76 commit 14a8920
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions test/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,41 +366,6 @@ describe("The copy method", () => {
})
})

describe("should not copy attributes when `--preserve` option was not given:", () => {
afterEach(() => teardownTestDir("test-ws"))

/**
* Verify.
* @returns {void}
*/
function verifyFiles() {
return co(function*() {
const srcStat = yield fs.stat("./LICENSE")
const dstStat = yield fs.stat("./test-ws/LICENSE")
const srcMtime = Math.floor(srcStat.mtime.getTime() / 1000)
const dstMtime = Math.floor(dstStat.mtime.getTime() / 1000)

assert(srcMtime !== dstMtime)
})
}

it("lib async version.", done => {
cpx.copy("LICENSE", "test-ws", () =>
verifyFiles().then(() => done(), done)
)
})

it("lib sync version.", () => {
cpx.copySync("LICENSE", "test-ws")
return verifyFiles()
})

it("command version.", () => {
execCommandSync("LICENSE test-ws")
return verifyFiles()
})
})

describe("should copy attributes when `--preserve` option was given:", () => {
afterEach(() => teardownTestDir("test-ws"))

Expand Down

0 comments on commit 14a8920

Please sign in to comment.