Skip to content

Commit db450a9

Browse files
committed
Ignore ANSI escapes when testing some Org source blocks
1 parent a2cbebd commit db450a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test-helper.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,10 @@ results instead of an equality match."
549549
(let ((result (buffer-substring-no-properties
550550
(jupyter-org-element-begin-after-affiliated element)
551551
(org-element-property :end element))))
552-
(if regexp (should (string-match-p test-result result))
552+
(if regexp (should (string-match-p
553+
test-result
554+
;; Ignore ANSI escapes for regexp matching.
555+
(ansi-color-apply result)))
553556
(message "\
554557
555558
Testing src-block:

0 commit comments

Comments
 (0)