From: Eduardo San Martin Morote Date: Mon, 3 May 2021 09:00:37 +0000 (+0200) Subject: chore: remove old code X-Git-Tag: v0.4.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a468b2d2e99844dda34d7f14dca67780cbe406e;p=thirdparty%2Fvuejs%2Fpinia.git chore: remove old code --- diff --git a/__tests__/pinia/stores/cart.ts b/__tests__/pinia/stores/cart.ts index 63eb26ca..f17b96d4 100644 --- a/__tests__/pinia/stores/cart.ts +++ b/__tests__/pinia/stores/cart.ts @@ -1,6 +1,5 @@ import { defineStore } from '../../../src' import { useUserStore, UserStore } from './user' -import { PiniaStore, ExtractGettersFromStore } from 'src/store' export const useCartStore = defineStore({ id: 'cart', @@ -52,8 +51,8 @@ export async function purchaseItems() { const user = useUserStore() if (!user.$state.name) return - console.log('Purchasing', cart.items.value) - const n = cart.items.value.length + console.log('Purchasing', cart.items) + const n = cart.items.length cart.$state.rawItems = [] return n