fix(sentry): resolve minified exception types on web release

This commit is contained in:
dab246
2026-03-03 11:43:45 +07:00
committed by Dat H. Pham
parent 2e8a11e7eb
commit 437c46f5ff
53 changed files with 133 additions and 109 deletions
@@ -45,7 +45,7 @@ void main() {
test('should rethrow exception when ServerSettingsAPI throws exception',() async {
// arrange
when(serverSettingsAPI.getServerSettings(any))
.thenThrow(NotFoundServerSettingsException());
.thenThrow(const NotFoundServerSettingsException());
// assert
expect(
@@ -71,7 +71,7 @@ void main() {
test('should rethrow exception when ServerSettingsAPI throws exception',() async {
// arrange
when(serverSettingsAPI.updateServerSettings(any, any, any))
.thenThrow(CanNotUpdateServerSettingsException());
.thenThrow(const CanNotUpdateServerSettingsException());
// assert
expect(
@@ -38,7 +38,7 @@ void main() {
test('should rethrow exception when ServerSettingsDataSource throws exception', () async {
// arrange
when(serverSettingsDataSource.getServerSettings(accountId))
.thenThrow(NotFoundServerSettingsException());
.thenThrow(const NotFoundServerSettingsException());
// assert
expect(
@@ -64,7 +64,7 @@ void main() {
test('should rethrow exception when ServerSettingsDataSource throws exception', () async {
// arrange
when(serverSettingsDataSource.updateServerSettings(session, accountId, serverSettings))
.thenThrow(NotFoundServerSettingsException());
.thenThrow(const NotFoundServerSettingsException());
// assert
expect(
@@ -39,7 +39,7 @@ void main() {
test('should return left with exception returned from repository', () {
// arrange
final exception = NotFoundServerSettingsException();
const exception = NotFoundServerSettingsException();
when(serverSettingsRepository.getServerSettings(any)).thenThrow(exception);
// assert
@@ -45,7 +45,7 @@ void main() {
test('should return left with exception returned from repository', () {
// arrange
final exception = NotFoundServerSettingsException();
const exception = NotFoundServerSettingsException();
when(serverSettingsRepository.updateServerSettings(any, any, any))
.thenThrow(exception);