Skip to content

Commit e36b228

Browse files
committed
Other: Fixed failing browser test
1 parent 7b3bdb5 commit e36b228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/other_bench.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var protobuf = require(".."),
55

66
tape.test("bench.proto and bench.json", function(test) {
77
test.plan(4);
8-
protobuf.load(require.resolve("../bench/data/bench.proto"), undefined, function(err, root) {
8+
protobuf.load("bench/data/bench.proto", undefined, function(err, root) { // no require.resolve to support browsers
99
if (err)
1010
return test.fail(err.message);
1111

0 commit comments

Comments
 (0)