gopkg.in/olebedev/go-duktape.v1@v1.0.0-20151008052556-e2ae92f01e4a/utils_test.go (about) 1 package duktape 2 3 import . "gopkg.in/check.v1" 4 5 func (s *DuktapeSuite) TestThatContextExists(c *C) { 6 defer func() { 7 r := recover() 8 c.Assert(r, Equals, "[duktape] Context does not exists!\nYou cannot call any contexts methods after `DestroyHeap()` was called.") 9 }() 10 ctx := New() 11 ctx.DestroyHeap() 12 ctx.Must() 13 }