         fs.unlink autocompletePlusPath, ->
 
     it "removes the packages", ->
+      spyOn(console, 'warn')
       atom.packages.loadPackages()
 
       waitsFor ->

        one = require.resolve("./fixtures/packages/package-with-style-sheets-manifest/styles/1.css")
        two = require.resolve("./fixtures/packages/package-with-style-sheets-manifest/styles/2.less")
        three = require.resolve("./fixtures/packages/package-with-style-sheets-manifest/styles/3.css")
        console.log atom.themes.stylesheetElementForId(one)
        expect(atom.themes.stylesheetElementForId(one)).toBeNull()
        expect(atom.themes.stylesheetElementForId(two)).toBeNull()
        expect(atom.themes.stylesheetElementForId(three)).toBeNull()

      try
        fs.mkdirSync(autocompleteCSSPath)
        fs.writeFileSync(path.join(autocompleteCSSPath, 'package.json'), '{}')
        type = if process.platform is 'win32' then 'junction' else 'dir'
        fs.symlinkSync(path.join(fixturePath, 'package-with-main'), autocompletePlusPath, type)

      expect(fs.isDirectorySync(autocompleteCSSPath)).toBe true
      expect(fs.isSymbolicLinkSync(autocompletePlusPath)).toBe true
