Skip to content

Commit

Permalink
Add test for symbolicating frame with out of range line
Browse files Browse the repository at this point in the history
Reviewed By: motiz88

Differential Revision: D14539117

fbshipit-source-id: 014706755bc8d40c5dba23a602a83bfbeb513314
  • Loading branch information
assafgelber authored and facebook-github-bot committed Mar 20, 2019
1 parent b02f09f commit 91ece70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/metro-symbolicate/src/__tests__/symbolicate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ test('symbolicating a single entry', async () =>
'thrower.js:18:null\n',
));

test('symbolicating a single entry with an out of range column', async () =>
await expect(execute([TESTFILE_MAP, '1', '1000000'])).resolves.toEqual(
'thrower.js:1:null\n',
));

test('symbolicating a single entry with out of range line', async () =>
await expect(execute([TESTFILE_MAP, '1000000', '161'])).resolves.toEqual(
'null:null:null\n',
));

test('symbolicating a sectioned source map', async () =>
await expect(
execute([resolve('testfile.sectioned.js.map'), '353.js', '1', '72']),
Expand Down

0 comments on commit 91ece70

Please sign in to comment.