   spyOn(TokenizedBuffer.prototype, "tokenizeInBackground").andCallFake -> @tokenizeNextChunk()
 
   pasteboardContent = 'initial pasteboard content'
-  spyOn($native, 'writeToPasteboard').andCallFake (text) -> pasteboardContent = text
-  spyOn($native, 'readFromPasteboard').andCallFake -> pasteboardContent
+  spyOn(clipboard, 'writeText').andCallFake (text) -> pasteboardContent = text
+  spyOn(clipboard, 'readText').andCallFake -> pasteboardContent
 
   addCustomMatchers(this)
 

pathwatcher = require 'pathwatcher'
RootView = require 'root-view'
Git = require 'git'
requireStylesheet "jasmine"
fixturePackagesPath = fsUtils.resolveOnLoadPath('fixtures/packages')
config.packageDirPaths.unshift(fixturePackagesPath)


  window.resetTimeouts()
  atom.packageStates = {}
  spyOn(atom, 'setWindowState')
  syntax.clearGrammarOverrides()
  syntax.clearProperties()

