Skip to content

Commit f9f378d

Browse files
authored
test: update tests to reflect upstream fix (#448)
See: protobufjs/protobuf.js#1817
1 parent 393f6ca commit f9f378d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/load.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ describe('loadSync', () => {
6464
'library.proto'
6565
);
6666
it('should not be able to load test file using protobufjs directly', () => {
67-
const root = protobuf.loadSync(TEST_FILE);
68-
// Common proto that should not have been loaded.
69-
assert.strictEqual(root.lookup('google.api.Http'), null);
67+
assert.throws(() => protobuf.loadSync(TEST_FILE));
7068
});
7169

7270
it('should load a test file that relies on common protos', () => {

0 commit comments

Comments
 (0)