'use strict'

var test = require('tape')
var Observ = require('observ')
var reset = require('./')

test(function (t) {
  var observ = Observ('foo')
  reset(observ)
  t.equal(observ(), null)

  observ.set(123)
  reset(observ, Constructor)
  t.equal(observ(), 'bar')

  t.end()

  function Constructor () {
    return 'bar'
  }
})

@@ -309,21 +309,65 @@
  return 
-'bar'
+function observable () %7B%0A      return 'bar'%0A    %7D
 %0A  %7D%0A%7D)%0A

Fix test w/ fake constructor