fix(sentry): resolve minified exception types on web release
This commit is contained in:
+2
-2
@@ -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(
|
||||
|
||||
+2
-2
@@ -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(
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user