Skip to content

Commit 4b6bdc9

Browse files
fix: Revert "test: update tests to reflect upstream fix (#448)" (#449)
This reverts commit f9f378d.
1 parent f9f378d commit 4b6bdc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/load.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ describe('loadSync', () => {
6464
'library.proto'
6565
);
6666
it('should not be able to load test file using protobufjs directly', () => {
67-
assert.throws(() => protobuf.loadSync(TEST_FILE));
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);
6870
});
6971

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

0 commit comments

Comments
 (0)