Skip to content

Commit

Permalink
fix(expected_description.html): Keep cross-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmd committed Oct 3, 2021
1 parent d8fad81 commit 172f109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions tests/expected_description.html
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
<body>
<div id="learnocaml-exo-toolbar">
.*
</div>
</body>
<body>.*<div id="learnocaml-exo-toolbar">.*</div>.*</body>
2 changes: 1 addition & 1 deletion tests/learn-ocaml-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ See also `learn-ocaml-client-sign-up-cmd'.")
(shell-command (concat "rm -f " file))))

(defun learn-ocaml-test-collapse-whitespace (str)
(replace-regexp-in-string "[[:space:]\n]+" " " str))
(string-trim (replace-regexp-in-string "[[:space:]\n]+" " " str)))

(defun learn-ocaml-test-client-expected-path ()
"Return ../../../learn-ocaml/_opam/bin
Expand Down

0 comments on commit 172f109

Please sign in to comment.