From 93606590aa9f5d20c627c4744fd4a61c26997ea4 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Tue, 31 Jan 2023 11:41:07 -0500 Subject: [PATCH] test: update tests to reflect upstream fix See: https://github.com/protobufjs/protobuf.js/pull/1817 --- test/load.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/load.test.ts b/test/load.test.ts index f8b7371..d275c66 100644 --- a/test/load.test.ts +++ b/test/load.test.ts @@ -64,9 +64,7 @@ describe('loadSync', () => { 'library.proto' ); it('should not be able to load test file using protobufjs directly', () => { - const root = protobuf.loadSync(TEST_FILE); - // Common proto that should not have been loaded. - assert.strictEqual(root.lookup('google.api.Http'), null); + assert.throws(() => protobuf.loadSync(TEST_FILE)); }); it('should load a test file that relies on common protos', () => {