diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-16 23:48:54 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-16 23:48:54 +0800 |
commit | b4060da9eb717f43346f24822f5b25c3385a8519 (patch) | |
tree | fcc4e2a94c5b3238796b20ac27257d6a7478fc69 /jsre/jsre_test.go | |
parent | 5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb (diff) | |
download | dexon-b4060da9eb717f43346f24822f5b25c3385a8519.tar dexon-b4060da9eb717f43346f24822f5b25c3385a8519.tar.gz dexon-b4060da9eb717f43346f24822f5b25c3385a8519.tar.bz2 dexon-b4060da9eb717f43346f24822f5b25c3385a8519.tar.lz dexon-b4060da9eb717f43346f24822f5b25c3385a8519.tar.xz dexon-b4060da9eb717f43346f24822f5b25c3385a8519.tar.zst dexon-b4060da9eb717f43346f24822f5b25c3385a8519.zip |
ethutil -> common
Diffstat (limited to 'jsre/jsre_test.go')
-rw-r--r-- | jsre/jsre_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jsre/jsre_test.go b/jsre/jsre_test.go index e4decf2f4..f01854b51 100644 --- a/jsre/jsre_test.go +++ b/jsre/jsre_test.go @@ -4,7 +4,7 @@ import ( "github.com/obscuren/otto" "testing" - "github.com/ethereum/go-ethereum/ethutil" + "github.com/ethereum/go-ethereum/common" ) type testNativeObjectBinding struct { @@ -26,7 +26,7 @@ func (no *testNativeObjectBinding) TestMethod(call otto.FunctionCall) otto.Value func TestExec(t *testing.T) { jsre := New("/tmp") - ethutil.WriteFile("/tmp/test.js", []byte(`msg = "testMsg"`)) + common.WriteFile("/tmp/test.js", []byte(`msg = "testMsg"`)) err := jsre.Exec("test.js") if err != nil { t.Errorf("expected no error, got %v", err) @@ -64,7 +64,7 @@ func TestBind(t *testing.T) { func TestLoadScript(t *testing.T) { jsre := New("/tmp") - ethutil.WriteFile("/tmp/test.js", []byte(`msg = "testMsg"`)) + common.WriteFile("/tmp/test.js", []byte(`msg = "testMsg"`)) _, err := jsre.Run(`loadScript("test.js")`) if err != nil { t.Errorf("expected no error, got %v", err) |