Skip to content

Commit 4a0c080

Browse files
committed
Fix undo edit step
1 parent 5b391a5 commit 4a0c080

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dwds/test/hot_reload_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ void main() {
4343
}
4444

4545
void undoEdit() {
46-
context.makeEditToDartEntryFile(
46+
context.makeEditToDartLibFile(
47+
libFileName: 'library1.dart',
4748
toReplace: newString,
4849
replaceWith: originalString,
4950
);
@@ -66,8 +67,8 @@ void main() {
6667
});
6768

6869
tearDown(() async {
69-
await context.tearDown();
7070
undoEdit();
71+
await context.tearDown();
7172
});
7273

7374
test('can hot reload', () async {

fixtures/_testHotReload/lib/library1.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
String get reloadValue => 'Bonjour le monde!';
5+
String get reloadValue => 'Hello World!';

0 commit comments

Comments
 (0)