Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

refactor: Rename bugdown_assert to markdown_assert.

Mohit Guptaa0edcae60f75
diff --git a/frontend_tests/node_tests/markdown.js b/frontend_tests/node_tests/markdown.js
index 97d7a213946..849ba30563e 100644
--- a/frontend_tests/node_tests/markdown.js
+++ b/frontend_tests/node_tests/markdown.js
@@ -257,12 +257,12 @@ run_test('marked_shared', () => {
const output = message.content;
const error_message = `Failure in test: ${test.name}`;
if (test.marked_expected_output) {
- global.bugdown_assert.notEqual(test.expected_output, output, error_message);
- global.bugdown_assert.equal(test.marked_expected_output, output, error_message);
+ global.markdown_assert.notEqual(test.expected_output, output, error_message);
+ global.markdown_assert.equal(test.marked_expected_output, output, error_message);
} else if (test.backend_only_rendering) {
assert.equal(markdown.contains_backend_only_syntax(test.input), true);
} else {
- global.bugdown_assert.equal(test.expected_output, output, error_message);
+ global.markdown_assert.equal(test.expected_output, output, error_message);
}
});
});
diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js
index 0bda67f2416..62b286f5641 100644
--- a/frontend_tests/zjsunit/index.js
+++ b/frontend_tests/zjsunit/index.js
@@ -88,8 +88,8 @@ function short_tb(tb) {
return lines.splice(0, i + 1).join('\n') + '\n(...)\n';
}
-// Set up bugdown comparison helper
-global.bugdown_assert = require('./bugdown_assert.js');
+// Set up markdown comparison helper
+global.markdown_assert = require('./markdown_assert.js');
function run_one_module(file) {
console.info('running tests for ' + file.name);
diff --git a/frontend_tests/zjsunit/bugdown_assert.js b/frontend_tests/zjsunit/markdown_assert.js
similarity index 99%
rename from frontend_tests/zjsunit/bugdown_assert.js
rename to frontend_tests/zjsunit/markdown_assert.js
index 8e4040931b5..9759d3cce0d 100644
--- a/frontend_tests/zjsunit/bugdown_assert.js
+++ b/frontend_tests/zjsunit/markdown_assert.js
@@ -1,5 +1,5 @@
/**
- * bugdown_assert.js
+ * markdown_assert.js
*
* Used to determine whether two Markdown HTML strings are semantically
* equivalent. Differs from the naive string-comparison approach in that