Skip to content

Commit e95322a

Browse files
committed
Fix some tests
1 parent d30f90a commit e95322a

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

SourceMaps.StackTraces.Tests/StackTraceParserTests.cs

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public void ParseTests(string stacktrace, List<StackFrame> expected)
1717
"because parsed stackframes should be the same as actual stackframes");
1818
for (var i = 0; i < expected.Count; i++)
1919
{
20+
if (expected[i] == null) continue;
21+
2022
actual[i].File.Should().Be(expected[i].File, "because parsed file should be the same as expected");
2123
actual[i].Method.Should()
2224
.Be(expected[i].Method, "because parsed method should be the same as expected");
@@ -893,7 +895,7 @@ at throwErr (https://localhost:5001/dist/site.js:1:45)
893895
{
894896
File = null,
895897
Method = "Error",
896-
Arguments = Array.Empty<string>(),
898+
Arguments = new[] { "native" },
897899
LineNumber = null,
898900
ColumnNumber = null,
899901
},
@@ -1120,6 +1122,8 @@ at throwErr (https://localhost:5001/dist/site.js:1:45)
11201122
LineNumber = 5529,
11211123
ColumnNumber = 16,
11221124
},
1125+
null,
1126+
null,
11231127
},
11241128
};
11251129
yield return new object[]
@@ -1251,6 +1255,40 @@ at throwErr (https://localhost:5001/dist/site.js:1:45)
12511255
LineNumber = 12,
12521256
ColumnNumber = 1917,
12531257
},
1258+
null,
1259+
null,
1260+
null,
1261+
null,
1262+
null,
1263+
null,
1264+
null,
1265+
null,
1266+
null,
1267+
null,
1268+
null,
1269+
null,
1270+
null,
1271+
null,
1272+
null,
1273+
null,
1274+
null,
1275+
null,
1276+
null,
1277+
null,
1278+
null,
1279+
null,
1280+
null,
1281+
null,
1282+
null,
1283+
null,
1284+
null,
1285+
null,
1286+
null,
1287+
null,
1288+
null,
1289+
null,
1290+
null,
1291+
null,
12541292
new StackFrame
12551293
{
12561294
File = "index.android.bundle",

0 commit comments

Comments
 (0)