Skip to content

Commit

Permalink
[unity]用例调整回来
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Apr 10, 2024
1 parent d05ed75 commit e575a37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unity/test/Src/Cases/API/EvalTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ public void ESDynamicModuleNotFound()
})
");
jsEnv.Tick();
string msg = jsEnv.Eval<string>("error_ESDynamicModuleNotFound.toString()");
Assert.True(msg.Contains("notfound/whatever.mjs") || msg.Contains("notfound\\whatever.mjs"));
StringAssert.Contains("notfound/whatever.mjs", jsEnv.Eval<string>("error_ESDynamicModuleNotFound.toString()"));
}
#if !UNITY_WEBGL || UNITY_EDITOR
[Test]
Expand Down

0 comments on commit e575a37

Please sign in to comment.