 define (require) ->
   expect = require 'expect'
   context = require 'context'
+
+  in_browser = (it) -> if window? then it else it.skip
 
   later = (done, fn) ->
     try

        $el = context.render run_context
        expect($el.text()).to.be html

    describe 'full contexts', ->
      ctx = null
      complete_callback = null
      on_complete = (fn, done) ->


  describe 'contexts', ->
    describe 'base contexts', ->
      in_browser(it) 'can be created', (done) ->
        context.create_base_context(imports: ['builtins'])
        .then(-> done())
        .fail done
