Skip to content

Commit

Permalink
test(filesystem): add insertLink test
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 committed Mar 28, 2024
1 parent b05b255 commit d278f71
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/filesystem-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict'

const assert = require('assert')
const path = require('path')

const Filesystem = require('../lib/filesystem')

describe('filesystem', function () {
it('should does not throw error when src path include symbol link', async () => {
const src = path.join(__dirname, 'input', 'srcpath-include-symlink', 'var', 'app')
const filesystem = new Filesystem(src)
assert.doesNotThrow(() => {
filesystem.insertLink(path.join(src, 'symbol', 'real.txt'))
})
})
})
Empty file.
1 change: 1 addition & 0 deletions test/input/srcpath-include-symlink/var

0 comments on commit d278f71

Please sign in to comment.