Skip to content

Commit

Permalink
use sub for appTree
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumer committed May 3, 2024
1 parent 8859389 commit 15b9118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/hearthstone.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { wireTypes } from 'src/decoders'
const pb = await readFile(join(dirname(fileURLToPath(import.meta.url)), 'hearthstone.bin'))
const tree = new RawProto(pb).readMessage()

// since all is off of 1.2.4, this will optimize to pull from there, "raw" is default type
const appTree = new RawProto(query(tree, '1.2.4:bytes').pop()).readMessage()
// since all is off of 1.2.4, this will optimize to pull from there
const appTree = query(tree, '1.2.4:sub').pop()

test('Get bytes of a sub-message with query', () => {
const matches = query(tree, '1.2.4:bytes')
Expand Down

0 comments on commit 15b9118

Please sign in to comment.