Skip to content

Commit

Permalink
fix: Revert "test: update tests to reflect upstream fix (#448)" (#449)
Browse files Browse the repository at this point in the history
This reverts commit f9f378d.
  • Loading branch information
alexander-fenster committed Feb 2, 2023
1 parent f9f378d commit 4b6bdc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/load.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ describe('loadSync', () => {
'library.proto'
);
it('should not be able to load test file using protobufjs directly', () => {
assert.throws(() => protobuf.loadSync(TEST_FILE));
const root = protobuf.loadSync(TEST_FILE);
// Common proto that should not have been loaded.
assert.strictEqual(root.lookup('google.api.Http'), null);
});

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

0 comments on commit 4b6bdc9

Please sign in to comment.