Olivier Massot 1 éve
szülő
commit
c2c569ba97

+ 1 - 1
models/Access/Access.ts

@@ -1,4 +1,4 @@
-import {HasOne, Num, Uid, Attr, Str} from 'pinia-orm/dist/decorators'
+import { Num, Uid, Attr, Str } from 'pinia-orm/dist/decorators'
 import type { Historical } from '~/types/interfaces'
 import Person from '~/models/Person/Person'
 import ApiModel from '~/models/ApiModel'

+ 0 - 1
pages/dev/poc_persist.vue

@@ -40,7 +40,6 @@ const onUpdateClick = () => {
   em.persist(access.value)
 }
 
-
 const onCreateClick = async () => {
   const notif = em.newInstance(Notification, { name: 'foo', message: ['bar'] })
 

+ 3 - 1
tests/units/services/data/entityManager.test.ts

@@ -429,7 +429,9 @@ describe('fetchCollection', () => {
 
     // @ts-expect-error Needed to avoid 'Cannot stringify non POJO' occasional bugs
     // eslint-disable-next-line
-    expect(result.toJSON()).toEqual('Computed result from fetchCollection at : api/dummyResource')
+    expect(result.toJSON()).toEqual(
+      'Computed result from fetchCollection at : api/dummyResource',
+    )
   })
 
   test('with a parent', async () => {