From 2fda94e8779eec431d7cdbe4369d9da3596e555d Mon Sep 17 00:00:00 2001 From: gconsidine Date: Fri, 4 Aug 2017 17:17:40 -0400 Subject: [PATCH] Remove unwanted chars from test comparison string --- awx/ui/tests/spec/job-results/parse-stdout.service-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/tests/spec/job-results/parse-stdout.service-test.js b/awx/ui/tests/spec/job-results/parse-stdout.service-test.js index 80268a16d9..86441c1ffa 100644 --- a/awx/ui/tests/spec/job-results/parse-stdout.service-test.js +++ b/awx/ui/tests/spec/job-results/parse-stdout.service-test.js @@ -21,14 +21,14 @@ describe('parseStdoutService', () => { describe('prettify()', () => { it('returns lines of stdout with styling classes', () => { let line = "[0;32mok: [host-00]", - styledLine = 'ok: [host-00]'; + styledLine = 'ok: [host-00]'; expect(parseStdoutService.prettify(line)).toBe(styledLine); }); it('can return lines of stdout without styling classes', () => { - let line = "[0;32mok: [host-00]", + let line = "[0;32mok: [host-00][0m", unstyled = "unstyled", - unstyledLine = 'ok: [host-00]'; + unstyledLine = 'ok: [host-00]'; expect(parseStdoutService.prettify(line, unstyled)).toBe(unstyledLine); });