Skip to content

Commit 71b2855

Browse files
mvuksanomhevery
authored andcommitted
fix(Jasmine): Execute AfterEach methods
This change fixes the problem that functions defined using afterEach in unit tests were not run.
1 parent ea12e7e commit 71b2855

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/jasmine_syntax.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ describe(name, fn, [bool exclusive=false]) {
5555
try {
5656
unit.group(name, () {
5757
unit.setUp(currentDescribe.setUp);
58-
fn();
59-
6058
unit.tearDown(currentDescribe.tearDown);
59+
fn();
6160
});
6261
} finally {
6362
currentDescribe = lastDescribe;

0 commit comments

Comments
 (0)