Format prettier after update

This commit is contained in:
Pavel Djundik 2019-11-09 10:55:50 +02:00
parent f87bb85f37
commit a13bcb8e93
5 changed files with 25 additions and 11 deletions

View File

@ -21,5 +21,6 @@ yarn.lock
.editorconfig .editorconfig
.eslintignore .eslintignore
.gitattributes .gitattributes
.browserslistrc
*.css *.css

View File

@ -3,9 +3,7 @@
<template v-if="message.from && message.from.nick" <template v-if="message.from && message.from.nick"
><Username :user="message.from" /> has changed the topic to: ><Username :user="message.from" /> has changed the topic to:
</template> </template>
<template v-else <template v-else>The topic is: </template>
>The topic is:
</template>
<span v-if="message.text" class="new-topic" <span v-if="message.text" class="new-topic"
><ParsedMessage :network="network" :message="message" ><ParsedMessage :network="network" :message="message"
/></span> /></span>

View File

@ -6,7 +6,10 @@ const sidebar = $("#sidebar");
const {vueApp} = require("../vue"); const {vueApp} = require("../vue");
socket.on("quit", function(data) { socket.on("quit", function(data) {
vueApp.networks.splice(vueApp.networks.findIndex((n) => n.uuid === data.network), 1); vueApp.networks.splice(
vueApp.networks.findIndex((n) => n.uuid === data.network),
1
);
vueApp.$nextTick(() => { vueApp.$nextTick(() => {
const chan = sidebar.find(".chan"); const chan = sidebar.find(".chan");

View File

@ -7,7 +7,10 @@ describe("fill", () => {
const text = "01234567890123456789"; const text = "01234567890123456789";
it("should return an entry for the unmatched end of string", () => { it("should return an entry for the unmatched end of string", () => {
const existingEntries = [{start: 0, end: 10}, {start: 5, end: 15}]; const existingEntries = [
{start: 0, end: 10},
{start: 5, end: 15},
];
const expected = [{start: 15, end: 20}]; const expected = [{start: 15, end: 20}];
@ -17,9 +20,15 @@ describe("fill", () => {
}); });
it("should return an entry per unmatched areas of the text", () => { it("should return an entry per unmatched areas of the text", () => {
const existingEntries = [{start: 0, end: 5}, {start: 10, end: 15}]; const existingEntries = [
{start: 0, end: 5},
{start: 10, end: 15},
];
const expected = [{start: 5, end: 10}, {start: 15, end: 20}]; const expected = [
{start: 5, end: 10},
{start: 15, end: 20},
];
const actual = fill(existingEntries, text); const actual = fill(existingEntries, text);
@ -27,7 +36,10 @@ describe("fill", () => {
}); });
it("should not return anything when entries match all text", () => { it("should not return anything when entries match all text", () => {
const existingEntries = [{start: 0, end: 10}, {start: 10, end: 20}]; const existingEntries = [
{start: 0, end: 10},
{start: 10, end: 20},
];
const actual = fill(existingEntries, text); const actual = fill(existingEntries, text);

View File

@ -117,9 +117,9 @@ describe("Utils", function() {
}); });
it("should maintain existing properties of a nested object", function() { it("should maintain existing properties of a nested object", function() {
expect(Utils.parseConfigOptions("foo.bar=true", {foo: {baz: false}})).to.deep.equal( expect(
{foo: {bar: true, baz: false}} Utils.parseConfigOptions("foo.bar=true", {foo: {baz: false}})
); ).to.deep.equal({foo: {bar: true, baz: false}});
}); });
it("should maintain existing entries of an array", function() { it("should maintain existing entries of an array", function() {