Skip to content

Commit

Permalink
Don't test Node's own behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Apr 24, 2021
1 parent a4027b5 commit a7bb1fa
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions lib/ensure/__tests__/symlink.test.js
Expand Up @@ -304,22 +304,6 @@ describe('fse-ensure-symlink', () => {
})
}

describe('fs.symlink()', () => {
const fn = fs.symlink
tests.forEach(test => {
const args = test[0].slice(0)
const nativeBehavior = test[1]
// const newBehavior = test[2]
if (nativeBehavior === 'file-success') fileSuccess(args, fn)
if (nativeBehavior === 'file-broken') fileBroken(args, fn)
if (nativeBehavior === 'file-error') fileError(args, fn)
args.push('dir')
if (nativeBehavior === 'dir-success') dirSuccess(args, fn)
if (nativeBehavior === 'dir-broken') dirBroken(args, fn)
if (nativeBehavior === 'dir-error') dirError(args, fn)
})
})

describe('ensureSymlink()', () => {
const fn = ensureSymlink
tests.forEach(test => {
Expand Down Expand Up @@ -358,22 +342,6 @@ describe('fse-ensure-symlink', () => {
})
})

describe('fs.symlinkSync()', () => {
const fn = fs.symlinkSync
tests.forEach(test => {
const args = test[0].slice(0)
const nativeBehavior = test[1]
// const newBehavior = test[2]
if (nativeBehavior === 'file-success') fileSuccessSync(args, fn)
if (nativeBehavior === 'file-broken') fileBrokenSync(args, fn)
if (nativeBehavior === 'file-error') fileErrorSync(args, fn)
args.push('dir')
if (nativeBehavior === 'dir-success') dirSuccessSync(args, fn)
if (nativeBehavior === 'dir-broken') dirBrokenSync(args, fn)
if (nativeBehavior === 'dir-error') dirErrorSync(args, fn)
})
})

describe('ensureSymlinkSync()', () => {
const fn = ensureSymlinkSync
tests.forEach(test => {
Expand Down

0 comments on commit a7bb1fa

Please sign in to comment.