DEV: introduces prettier for es6 files

This commit is contained in:
Joffrey JAFFEUX
2018-06-15 17:03:24 +02:00
committed by GitHub
parent c7ee70941e
commit 03a7d532cf
1162 changed files with 60667 additions and 29659 deletions

View File

@ -1,5 +1,5 @@
import componentTest from 'helpers/component-test';
import Topic from 'discourse/models/topic';
import componentTest from "helpers/component-test";
import Topic from "discourse/models/topic";
const buildTopic = function() {
return Topic.create({
@ -10,15 +10,15 @@ const buildTopic = function() {
});
};
moduleForComponent('pinned-options', {
moduleForComponent("pinned-options", {
integration: true,
beforeEach: function() {
this.set('subject', selectKit());
this.set("subject", selectKit());
}
});
componentTest('updating the content refreshes the list', {
template: '{{pinned-options value=pinned topic=topic}}',
componentTest("updating the content refreshes the list", {
template: "{{pinned-options value=pinned topic=topic}}",
beforeEach() {
this.siteSettings.automatically_unpin_topics = false;
@ -28,13 +28,23 @@ componentTest('updating the content refreshes the list', {
test(assert) {
andThen(() => {
assert.equal(this.get('subject').header().name(), "pinned");
assert.equal(
this.get("subject")
.header()
.name(),
"pinned"
);
});
andThen(() => this.set("pinned", false));
andThen(() => {
assert.equal(this.get('subject').header().name(), "unpinned");
assert.equal(
this.get("subject")
.header()
.name(),
"unpinned"
);
});
}
});