Skip to content

Commit d9f7c7d

Browse files
author
Sergey Khomushin
committed
emailjs_test: use stringify as example
1 parent 508face commit d9f7c7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/emailjs_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ void main() {
138138
expect(result, isNull);
139139
} catch (error) {
140140
if (error is EmailJSResponseStatus) {
141-
expect(error.status, 403);
142-
expect(error.text, 'The Public Key is required');
141+
expect('$error', '[403] The Public Key is required');
143142
}
144143
}
145144
});

0 commit comments

Comments
 (0)