We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 393f6ca commit f9f378dCopy full SHA for f9f378d
test/load.test.ts
@@ -64,9 +64,7 @@ describe('loadSync', () => {
64
'library.proto'
65
);
66
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);
+ assert.throws(() => protobuf.loadSync(TEST_FILE));
70
});
71
72
it('should load a test file that relies on common protos', () => {
0 commit comments