From ecf08f4ba7d56ba82cba313394c2789c0176e850 Mon Sep 17 00:00:00 2001 From: An Ko Date: Wed, 5 Aug 2015 17:58:13 +0200 Subject: [PATCH] Add failing test for helpers.parseTags a4d56fb moved the function from here https://github.com/chjj/blessed/blob/99f9d622e6053c62069f8fedb05141018fea9fdd/lib/widget.js#L9607-L9610 to its own file, but didn't fill in any reference for the Screen variable. --- test/helpers.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/helpers.js diff --git a/test/helpers.js b/test/helpers.js new file mode 100644 index 0000000..676b152 --- /dev/null +++ b/test/helpers.js @@ -0,0 +1,5 @@ +var blessed = require('../'), + screen = blessed.screen(); + +console.log(blessed.helpers.parseTags('{red-fg}This should be red.{/red-fg}')); +console.log(blessed.helpers.parseTags('{green-bg}This should have a green background.{/green-bg}'));