 fs = require 'fs-plus'
 path = require 'path'
+process = require 'process'
 temp = require('temp').track()
 
 DefaultFileIcons = require '../lib/default-file-icons'

      filePath = path.join(tempDir, 'foo.zip')
      linkPath = path.join(tempDir, 'link.zip')
      fs.writeFileSync(filePath, '')
      fs.symlinkSync(filePath, linkPath)

      expect(fileIcons.iconClassForPath(linkPath)).toEqual('icon-file-symlink-file')

      filePath = path.join(tempDir, 'foo.bar')
      linkPath = path.join(tempDir, 'link.bar')
      fs.writeFileSync(filePath, '')
      try
        fs.symlinkSync(filePath, linkPath)
      catch err
        # Symlinks are Administrator only on Windows
        return if err.code is 'EPERM' and process.platform is 'win32'
        throw err

      expect(fileIcons.iconClassForPath(linkPath)).toEqual('icon-file-symlink-file')

