Upgrade to Babel 6

This commit is contained in:
Robin Ward
2017-07-05 14:14:30 -04:00
parent 2f480e21a0
commit 754c1e5438
35 changed files with 62713 additions and 67299 deletions
@@ -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");
});
});
+1 -1
View File
@@ -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.