From 0d4c10db15b889fea6272d04d13d69e0afe33c2f Mon Sep 17 00:00:00 2001 From: "Micael Levi L. Cavalcante" Date: Mon, 28 Nov 2022 00:02:48 -0400 Subject: [PATCH] feat(core): add newline on 'debug' repl function message --- packages/core/repl/native-functions/debug-repl-fn.ts | 2 +- packages/core/test/repl/native-functions/help-repl-fn.spec.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/repl/native-functions/debug-repl-fn.ts b/packages/core/repl/native-functions/debug-repl-fn.ts index 910941584e1..2f1d4a97d14 100644 --- a/packages/core/repl/native-functions/debug-repl-fn.ts +++ b/packages/core/repl/native-functions/debug-repl-fn.ts @@ -8,7 +8,7 @@ export class DebugReplFn extends ReplFunction { public fnDefinition: ReplFnDefinition = { name: 'debug', description: - 'Print all registered modules as a list together with their controllers and providers. If the argument is passed in, for example, "debug(MyModule)" then it will only print components of this specific module.', + 'Print all registered modules as a list together with their controllers and providers.\nIf the argument is passed in, for example, "debug(MyModule)" then it will only print components of this specific module.', signature: '(moduleCls?: ClassRef | string) => void', }; diff --git a/packages/core/test/repl/native-functions/help-repl-fn.spec.ts b/packages/core/test/repl/native-functions/help-repl-fn.spec.ts index 441d14c43c9..09f04115324 100644 --- a/packages/core/test/repl/native-functions/help-repl-fn.spec.ts +++ b/packages/core/test/repl/native-functions/help-repl-fn.spec.ts @@ -55,7 +55,8 @@ describe('HelpReplFn', () => { .equal(`You can call .help on any function listed below (e.g.: help.help): $ - Retrieves an instance of either injectable or controller, otherwise, throws exception. -debug - Print all registered modules as a list together with their controllers and providers. If the argument is passed in, for example, "debug(MyModule)" then it will only print components of this specific module. +debug - Print all registered modules as a list together with their controllers and providers. +If the argument is passed in, for example, "debug(MyModule)" then it will only print components of this specific module. get - Retrieves an instance of either injectable or controller, otherwise, throws exception. help - Display all available REPL native functions. methods - Display all public methods available on a given provider or controller.