]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
test: names
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 May 2023 16:40:10 +0000 (18:40 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 May 2023 16:40:10 +0000 (18:40 +0200)
packages/testing/src/testing.spec.ts

index 4455dda431d7cee76578a3dd4538c73170a5277a..6eecfc206b0872ddba11acdbc888f3069c18bb69 100644 (file)
@@ -259,7 +259,7 @@ describe('Testing', () => {
     })
   })
 
-  it('allows overriding computed properties', () => {
+  it('allows overriding getters', () => {
     const useStore = defineStore('lol', {
       state: () => ({ n: 0 }),
       getters: {
@@ -284,7 +284,7 @@ describe('Testing', () => {
     expect(store.double).toBe(6)
   })
 
-  it('allows overriding computed properties in setup stores', () => {
+  it('allows overriding getters in setup stores', () => {
     const useStore = defineStore('computed', () => {
       const n = ref(0)
       const double = computed(() => n.value * 2)
@@ -375,7 +375,7 @@ describe('Testing', () => {
     expect(spy).toHaveBeenLastCalledWith(5)
   })
 
-  it('can override computed added in plugins', () => {
+  it('can override getters added in plugins', () => {
     const pinia = createTestingPinia({
       plugins: [
         ({ store }) => {