     constructor: (props = {}) ->
 
     parse: (tokens) ->
-      declared = ['require', 'console', 'module', 'process']
+      # two dimensional array, first dimension representing depth at which vars defined
+      declared = [
+        ['require', 'console', 'module', 'process']
+      ]
       snippets = []
 
       indent = (code, depth) ->

        lastSpacing ?= ""
        code += "\n\n#{lastSpacing}done()"

      tokens.forEach (token) ->

        if token.type is "describe"


    getVariableNames: (code) ->
      tokens = require("coffee-script").tokens(code)

      reduceFn = (vars, token) ->
        [type, value] = token
        return vars unless type is "IDENTIFIER" and token.variable
        return vars unless vars.indexOf(value) is -1
        vars.concat value

      tokens.reduce reduceFn, []

    convert: (tokens) ->
      currentDepth = 0
