Skip to content

Commit 290a067

Browse files
committed
Lint cleanup
1 parent b498fdb commit 290a067

File tree

4 files changed

+56
-54
lines changed

4 files changed

+56
-54
lines changed

src/service-module/service-module.actions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ export default function makeServiceActions(service) {
123123
},
124124

125125
update({ commit, dispatch, state }, [id, data, params]) {
126-
127126
commit('setPending', 'update')
128127

129128
params = fastCopy(params)

test/service-module/make-service-plugin.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import _omit from 'lodash/omit'
1515

1616
Vue.use(Vuex)
1717

18-
describe('makeServicePlugin', function () {
18+
describe('makeServicePlugin', function() {
1919
beforeEach(() => {
2020
clearModels()
2121
})
@@ -27,7 +27,7 @@ describe('makeServicePlugin', function () {
2727
assert(clients.byAlias['this is a test'], 'got a reference to the client.')
2828
})
2929

30-
it('registers the vuex module with options', function () {
30+
it('registers the vuex module with options', function() {
3131
interface RootState {
3232
todos: {}
3333
}
@@ -93,7 +93,7 @@ describe('makeServicePlugin', function () {
9393
assert.deepEqual(_omit(received), _omit(expected), 'defaults in place.')
9494
})
9595

96-
it('sets up Model.store && service.FeathersVuexModel', function () {
96+
it('sets up Model.store && service.FeathersVuexModel', function() {
9797
const serverAlias = 'default'
9898
const { makeServicePlugin, BaseModel } = feathersVuex(feathers, {
9999
serverAlias
@@ -113,7 +113,7 @@ describe('makeServicePlugin', function () {
113113
assert.equal(service.FeathersVuexModel, Todo, 'Model accessible on service')
114114
})
115115

116-
it('allows accessing other models', function () {
116+
it('allows accessing other models', function() {
117117
const serverAlias = 'default'
118118
const { makeServicePlugin, BaseModel, models } = feathersVuex(feathers, {
119119
idField: '_id',

test/service-module/model-temp-ids.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ function makeContext() {
6666
}
6767
}
6868

69-
describe('Models - Temp Ids', function () {
69+
describe('Models - Temp Ids', function() {
7070
beforeEach(() => {
7171
clearModels()
7272
})
7373

74-
it('adds tempIds for items without an [idField]', function () {
74+
it('adds tempIds for items without an [idField]', function() {
7575
const { makeServicePlugin, BaseModel } = feathersVuex(feathersClient, {
7676
idField: '_id',
7777
serverAlias: 'temp-ids'
@@ -105,7 +105,7 @@ describe('Models - Temp Ids', function () {
105105
assert(desc.enumerable, 'it is enumerable')
106106
})
107107

108-
it('allows specifying the value for the tempId', function () {
108+
it('allows specifying the value for the tempId', function() {
109109
const context = makeContext()
110110
const Comic = context.Comic
111111
const oid = new ObjectID().toHexString()
@@ -116,7 +116,7 @@ describe('Models - Temp Ids', function () {
116116
assert.equal(comic.__id, oid, 'the objectid was used')
117117
})
118118

119-
it('adds to state.tempsById', function () {
119+
it('adds to state.tempsById', function() {
120120
const { makeServicePlugin, BaseModel } = feathersVuex(feathersClient, {
121121
idField: '_id',
122122
serverAlias: 'temp-ids'
@@ -178,7 +178,7 @@ describe('Models - Temp Ids', function () {
178178
assert(Transaction.copiesById[txn.__id], 'it is in the copiesById')
179179
})
180180

181-
it('commits into store.tempsById', function () {
181+
it('commits into store.tempsById', function() {
182182
const { makeServicePlugin, BaseModel } = feathersVuex(feathersClient, {
183183
idField: '_id',
184184
serverAlias: 'temp-ids'
@@ -213,7 +213,7 @@ describe('Models - Temp Ids', function () {
213213
assert.equal(originalTemp.amount, 11.99, 'original was updated')
214214
})
215215

216-
it('can reset a temp clone', function () {
216+
it('can reset a temp clone', function() {
217217
const { makeServicePlugin, BaseModel } = feathersVuex(feathersClient, {
218218
serverAlias: 'temp-ids'
219219
})
@@ -245,7 +245,7 @@ describe('Models - Temp Ids', function () {
245245
assert.equal(clone.amount, 1.99, 'clone was reset')
246246
})
247247

248-
it('returns the keyedById record after create, not the tempsById record', function (done) {
248+
it('returns the keyedById record after create, not the tempsById record', function(done) {
249249
const { Comic, store } = makeContext()
250250

251251
const comic = new Comic({

0 commit comments

Comments
 (0)