 
 {WorkspaceView} = require 'atom'
 fs = require 'fs-plus'
-temp = require 'temp'
+temp = require('temp').track()
 
 Snippet = require '../lib/snippet'
 Snippets = require '../lib/snippets'

        expect(editor.getCursorBufferPosition()).toEqual [0, 5]
        editorView.trigger keydownEvent('tab', target: editorView[0])
        expect(editor.getSelectedBufferRange()).toEqual [[0, 6], [0, 11]]

  describe "snippet loading", ->
    [configDirPath, packageWithSnippets, packageWithBrokenSnippets] = []

            prefix: "t10"
            body: """
              hello${10} ${11:large} indices${1}
            """

          "many tabstops":
            prefix: "t11"
            body: """
              $0one${1} ${2:two} three${3}
            """

    describe "when the letters preceding the cursor trigger a snippet", ->
