We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f378d commit 4b6bdc9Copy full SHA for 4b6bdc9
test/load.test.ts
@@ -64,7 +64,9 @@ describe('loadSync', () => {
64
'library.proto'
65
);
66
it('should not be able to load test file using protobufjs directly', () => {
67
- assert.throws(() => protobuf.loadSync(TEST_FILE));
+ const root = protobuf.loadSync(TEST_FILE);
68
+ // Common proto that should not have been loaded.
69
+ assert.strictEqual(root.lookup('google.api.Http'), null);
70
});
71
72
it('should load a test file that relies on common protos', () => {
0 commit comments