From 42f9c5df6f10e91081c8dba093535d9bc7024e85 Mon Sep 17 00:00:00 2001 From: Anton Malofeev Date: Fri, 19 Mar 2021 09:43:01 +0300 Subject: [PATCH] fix: comma-dangle --- packages/datastore/tests/Vue.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/datastore/tests/Vue.test.ts b/packages/datastore/tests/Vue.test.ts index fe75ca42b..31f06bc36 100644 --- a/packages/datastore/tests/Vue.test.ts +++ b/packages/datastore/tests/Vue.test.ts @@ -7,13 +7,13 @@ describe("vue hooks test suite", () => { const originState: ReactiveState> = { data: [], error: null, - loading: false, + loading: false }; const stateCopy = (title?: Maybe) => { const copy = JSON.parse(JSON.stringify(originState)) as ReactiveState< Record >; - if (title) copy.data.push({ title }); + if (title) {copy.data.push({ title });} return copy; }; @@ -21,7 +21,7 @@ describe("vue hooks test suite", () => { const state = ref(stateCopy()); const event = { eventType: CRUDEvents.ADD, - data: [{ title: "Test" }], + data: [{ title: "Test" }] }; const result = useDatastoreHooks.updateResult(state, event, "title"); @@ -32,7 +32,7 @@ describe("vue hooks test suite", () => { const state = ref(stateCopy("Test")); const event = { eventType: CRUDEvents.UPDATE, - data: [{ title: "Test", pass: true }], + data: [{ title: "Test", pass: true }] }; const result = useDatastoreHooks.updateResult(state, event, "title"); @@ -46,9 +46,9 @@ describe("vue hooks test suite", () => { data: [ { previous: { title: "Test", pass: true }, - current: { title: "NewTest", pass: true }, - }, - ], + current: { title: "NewTest", pass: true } + } + ] }; const result = useDatastoreHooks.updateResult(state, event, "title"); @@ -60,7 +60,7 @@ describe("vue hooks test suite", () => { const state = ref(stateCopy()); const event = { eventType: CRUDEvents.DELETE, - data: [{ title: "Test" }], + data: [{ title: "Test" }] }; const result = useDatastoreHooks.updateResult(state, event, "title");