mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Remove unwanted chars from test comparison string
This commit is contained in:
parent
3fb6ddd949
commit
2fda94e877
@ -21,14 +21,14 @@ describe('parseStdoutService', () => {
|
||||
describe('prettify()', () => {
|
||||
it('returns lines of stdout with styling classes', () => {
|
||||
let line = "[0;32mok: [host-00][0m",
|
||||
styledLine = '<span class="ansi32">ok: [host-00]</span>';
|
||||
styledLine = '<span class="ansi32">ok: [host-00]</span>';
|
||||
expect(parseStdoutService.prettify(line)).toBe(styledLine);
|
||||
});
|
||||
|
||||
it('can return lines of stdout without styling classes', () => {
|
||||
let line = "[0;32mok: [host-00][0m",
|
||||
let line = "[0;32mok: [host-00][0m",
|
||||
unstyled = "unstyled",
|
||||
unstyledLine = 'ok: [host-00]';
|
||||
unstyledLine = 'ok: [host-00]';
|
||||
expect(parseStdoutService.prettify(line, unstyled)).toBe(unstyledLine);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user