From 85e485c021a58f4a0cdb2ec600712437e323dc2c Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Fri, 24 Feb 2023 00:26:35 +0800 Subject: [PATCH] Fix broken test case --- codegen_build/test/np_log_test.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/codegen_build/test/np_log_test.dart b/codegen_build/test/np_log_test.dart index 2dc84ed7..2c21d191 100644 --- a/codegen_build/test/np_log_test.dart +++ b/codegen_build/test/np_log_test.dart @@ -15,12 +15,11 @@ void main() { test("NpLog", () async { await expectGen("Test", completion(""" -// ignore: non_constant_identifier_names -final _\$logTest = Logger("np_log.Test"); - extension _\$TestNpLog on Test { // ignore: unused_element - Logger get _log => _\$logTest; + Logger get _log => log; + + static final log = Logger("np_log.Test"); } """)); });