Upgrade to Babel 6
This commit is contained in:
@@ -40,7 +40,7 @@ window.bootbox.$body = $('#ember-testing');
|
||||
$.fn.modal = AcceptanceModal;
|
||||
|
||||
function acceptance(name, options) {
|
||||
module("Acceptance: " + name, {
|
||||
QUnit.module("Acceptance: " + name, {
|
||||
beforeEach() {
|
||||
resetMobile();
|
||||
|
||||
|
||||
@@ -34,10 +34,10 @@ QUnit.module("initializer:localization", {
|
||||
}
|
||||
});
|
||||
|
||||
QUnit.test("translation overrides", assert => {
|
||||
QUnit.test("translation overrides", function(assert) {
|
||||
PreloadStore.store('translationOverrides', {"js.composer.reply":"WAT","js.topic.reply.help":"foobar"});
|
||||
LocalizationInitializer.initialize(this.registry);
|
||||
|
||||
assert.equal(I18n.t("composer.reply"), "WAT", "overrides existing translation in current locale");
|
||||
assert.equal(I18n.t("topic.reply.help"), "foobar", "overrides translation in default locale");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ import { default as PrettyText, buildOptions } from 'pretty-text/pretty-text';
|
||||
import { hashString } from 'discourse/lib/hash';
|
||||
|
||||
// Run the MDTest spec
|
||||
module("MDTest");
|
||||
QUnit.module("MDTest");
|
||||
|
||||
// This is cheating, but the trivial differences between sanitization
|
||||
// do not affect formatting.
|
||||
|
||||
Reference in New Issue
Block a user