Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit 99a89f8

Browse files
committed
Fix tests
Godep.toml/lock also have been added to lock testing lib
1 parent 391c1c4 commit 99a89f8

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pkg/
22
src/
33
misc/
44
node_modules
5+
vendor

Gopkg.lock

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[constraint]]
2+
branch = "v1"
3+
name = "gopkg.in/check.v1"

api_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ func (s *DuktapeSuite) TestPevalFile_Error(c *C) {
2727

2828
func (s *DuktapeSuite) TestPushErrorObject(c *C) {
2929
s.ctx.PushErrorObject(ErrType, "Got an error thingy: %v", 5)
30-
s.assertErrorInCtx(c, ErrType, "Error: Got an error thingy: 5")
30+
s.assertErrorInCtx(c, ErrType, "TypeError: Got an error thingy: 5")
3131
}
3232

3333
func (s *DuktapeSuite) TestPushErrorObjectVa(c *C) {
3434
s.ctx.PushErrorObjectVa(ErrURI, "Got an error thingy: %x %s %s", 0xdeadbeef, "is", "tasty")
35-
s.assertErrorInCtx(c, ErrURI, "Error: Got an error thingy: deadbeef is tasty")
35+
s.assertErrorInCtx(c, ErrURI, "URIError: Got an error thingy: deadbeef is tasty")
3636
}
3737

3838
func (s *DuktapeSuite) assertErrorInCtx(c *C, code int, msg string) {

0 commit comments

Comments
 (0)